Blockland Forums > Modification Help

Two questions about the spraycan.

Pages: (1/3) > >>

otto-san:

1) What would be the best way of detecting when a brick is colored?

2) Would there be a way to force a client to use only a single color?

Nexus:


--- Quote from: otto-san on August 20, 2011, 11:14:02 PM ---1) What would be the best way of detecting when a brick is colored?

2) Would there be a way to force a client to use only a single color?

--- End quote ---

I have some ideas for number 1, but I dont think my ideas are very efficient.

For number two, you can package servercmdusespraycan(%client, %colorid)
Make it so that they can't call it on any color except a certain one.

ThinkInvisible:


--- Quote from: Nexus on August 21, 2011, 12:29:00 AM ---I have some ideas for number 1, but I dont think my ideas are very efficient.
-snip-

--- End quote ---

Just try packaging onProjectileHit or whatever handles the spraycan hitting a brick.
PACKAGING WORKS WITH EEEEEVERYTHIIIIIING

Amade:

1) Package fxDTSbrick::setColor(%brick, %color)

otto-san:


--- Quote from: Amade on August 21, 2011, 03:00:47 PM ---1) Package fxDTSbrick::setColor(%brick, %color)

--- End quote ---
Okay. Thanks.

Pages: (1/3) > >>

Go to full version