Author Topic: Limited Paint.  (Read 966 times)

I have a question. Is it possible to make a paint can for a minigame that it would limit the amount of bricks you can paint?

Mean like bleh's paint thing where it took like $1 to spray paint for a sec?

No. Per brick. Not per second.


I would like it done. But how?

You would have to override the paintcan's oncollision so that it will only do parent:oncollision if the client's paintleft is above 0.

It would be better to prevent it firing and showing the particles at all if you don't have any paint left. You'd have to rewrite the state system for the spray cans, though. It'll be something like the one for the Flamethrower, but add a "no ammo left" state and use setImageAmmo/stateTransitionOnNoAmmo.