Blockland Forums > Modification Help
Charging a projectile + Detecting water
<< < (3/3)
Manty:
Yo Demian, someone has a message for you:


--- Quote from: Iban ---Demian, that's not true at all.

All (or at least most) default datablock properties aren't used by scripts at all unless the scripts hook into the functionality somehow. That particular property is used by the engine's client-side prediction to spawn an appropriate emitter when the project enters water.

There is no function called for a projectile entering water. There is one called for Armor::onEnterLiquid(%this, %obj) that can be used to detect if a player object enters a liquid, but it cannot work for projectiles to the best of my knowledge.

Your best best, if you really REALLY really REALLY want this, is to hook a looping schedule on the projectile after creation that does a box search on the projectile's world box looking for the $TypeMasks::WaterObjectType mask.
--- End quote ---
Demian:
Well that sucks. =/ I guess I have to just deal with it then.
Destiny/Zack0Wack0:
You can however use the "particleWaterEmitter" and "waterExplosion" fields on a ProjectileDatablock if that will help.
Navigation
Message Index
Previous page

Go to full version