Blockland Forums > Modification Help
Problem with a Spray Can item (Projectiles + datablocks)
<< < (2/2)
Demian:

--- Quote from: Space Guy on April 03, 2011, 06:46:43 AM ---Well, the paint projectile disappears without exploding after 0.3 seconds and doesn't explode if you hit players. Are you sure it's actually reaching the surface?

--- End quote ---
Increasing the lifetime and muzzle velocity had no effect.


--- Quote from: Ephialtes on April 03, 2011, 06:56:57 AM ---Just incase anyone doesn't know - the spray can uses raycasting for collision, the projectile is just for the spray effect.

--- End quote ---
You mean it uses raycast for the explosion too? I have to assume this is hardcoded somewhere because it is not in any of the files that I've dumbed. (Image, item, explosion, projectile, emitters, particles and sounds) Can I do this with projectiles?

All I need right now is the explosion when the stream of paint hits something.
Space Guy:

--- Quote from: Ephialtes on April 03, 2011, 06:56:57 AM ---Just incase anyone doesn't know - the spray can uses raycasting for collision, the projectile is just for the spray effect.

--- End quote ---
Paint goes through non-raycasting bricks and takes time to hit. The Hammer/Wrench/Wand raycast but paint works by projectile.

Demian:
For me the paint goes through everything. It doesn't collide with anything.

Edit: Wait a second, I already have a projectile that does collide with everything and spawns an explosion when it hits something. How come the Spray Can isn't shooting those?
Navigation
Message Index
Previous page

Go to full version