76
Modification Help / Re: [Coding Help] Callback for projectile lifetime expiration
« on: February 02, 2016, 09:02:28 AM »
That works, thanks for your help!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Can't you rather track the building tool firing, get the projectile that way. When the lifetime is about to expire, check if it exists.
BrickDeployProjectile::onRemove should be called when it's deleted, then you'll need to check whether it timed out. Maybe that's as easy as this.lifetime <= 0?
package Planets
{
[...]
function BrickDeployProjectile::onRemove(%data, %this)
{
talk("testA");
Parent::onRemove(%data, %this);
}
[...]
};
activatePackage("Planets");
Maybe the trees should be delegated just to the one section and not be right at the start as they're a little ruthless.
-snip-
at this day in age saying a color means your tribal
-snip-
-snip-