Some wishes about self destruction

Some wishes about self destruction

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Some wishes about self destruction

Post by KDR_11k »

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.
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Re: Some wishes about self destruction

Post by Guessmyname »

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.
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...)
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

No, that doesn't work. Killed is just the function that gets called when the unit dies, it has no special meaning by itself (just like calling AimWeaponX won't fire the weapon).
User avatar
MrSpontaneous
Posts: 242
Joined: 09 Sep 2005, 22:39

Post by MrSpontaneous »

+1 to this
Post Reply

Return to “Feature Requests”