Author Topic: Spray Can name?  (Read 1212 times)

What is the Spray Can's name in datablocks? (Like, hammerImage, wrenchProjectile and so on.) I'm trying to dump the information from it.

I think it's paintCanImage.

Nope. It's not sprayCanImage either.

Aha! Found some old post Space Guy. It's blueSprayCanImage and then it's just recolored and copied for the other colors.

Edit: Okay this is odd. The item doesn't exist. The image says item = "sprayCan" but when trying to dump it, it doesn't exist.
« Last Edit: April 02, 2011, 04:04:35 PM by Demian »

It doesn't have an item - you never spawn or pick up spraycans in the default game. All item types are the same apart from the model/uiName, anyway.

It doesn't have an item - you never spawn or pick up spraycans in the default game. All item types are the same apart from the model/uiName, anyway.
Yeah I just figured that out. Well with a little fiddling I managed to get it spawn. So far so good.

why not just open the spray can mod and look at the files?

why not just open the spray can mod and look at the files?
Because the spray can isn't a mod, and i'm quite sure that its part of the main code/engine of Blockland.

Because the spray can isn't a mod, and i'm quite sure that its part of the main code/engine of Blockland.
It is hardcoded. I also found rainbowSprayCanImage.

why not just open the spray can mod and look at the files?
You mean the Fill Can.

You mean the Fill Can.
The Fill Can add-on doesn't help in this case at all.

While this topic is here, and since this may help Demian at some point, what function is called when a player paints a brick? And I'm not talking about colorXPaintProjectile.onColli sion(), but the most general one that is called every time.

While this topic is here, and since this may help Demian at some point, what function is called when a player paints a brick? And I'm not talking about colorXPaintProjectile.onColli sion(), but the most general one that is called every time.
It won't help me. I checked thru the Spray Can script and there was nothing really. I bet Fill Can has something.


While this topic is here, and since this may help Demian at some point, what function is called when a player paints a brick? And I'm not talking about colorXPaintProjectile.onColli sion(), but the most general one that is called every time.
%brick.setColor(%color); %color is a color in the color ID table. This is called every time the brick changes color, so it would be called when the brick is painted, but also when the color is changed through events or otherwise.