Hi
I try to make a rocket with special effect (or it should remove an entity wich isn't on the map at impact), but I can't find out how to call a function when the rocket hits it's target. I tried use onentitydied, but it doesn't called becaouse projectiles don't have health (I guess)
custom projectile action
Re: custom projectile action
You'd want to use the "createentity" trigger with the "trigger_createdentity" property set to true then watch for the event in "ontriggercreatedentity".hangyas wrote:Hi
I try to make a rocket with special effect (or it should remove an entity wich isn't on the map at impact), but I can't find out how to call a function when the rocket hits it's target. I tried use onentitydied, but it doesn't called becaouse projectiles don't have health (I guess)
You can see an example of it in use in my Explosive Termites mod.
If you want to get ahold of me I'm almost always on Discord.
Re: custom projectile action
Good trick, thanks