1. A CanSelfD tag to allow modders to disable the TA-ism that everything is self-destructable. Maybe some mods don't want their players to use scorched earth tactics without manually blowing up the units they want gone (so e.g. the enemy can't capture or reclaim them).
2. A way for a script to destroy its unit. This has many uses, the one I was thinking of was a weapons satelite that carries a limited number of missiles and once those are depleted the satelite self-destructs (including a reentry animation that has the satelite burning up in the atmosphere) as it has become useless.
Some wishes about self destruction
Moderator: Moderators
- Guessmyname
- Posts: 3301
- Joined: 28 Apr 2005, 21:07
Re: Some wishes about self destruction
Calling the Killed() function should do this, I think. A way to set Health too would be nice (there was a patch to do this but it was for an old version of Spring...)KDR_11k wrote:2. A way for a script to destroy its unit. This has many uses, the one I was thinking of was a weapons satelite that carries a limited number of missiles and once those are depleted the satelite self-destructs (including a reentry animation that has the satelite burning up in the atmosphere) as it has become useless.