Difference between revisions of "Self-destruct"
From FreeSpace Wiki
m |
m |
||
Line 6: | Line 6: | ||
− | The self-destruct SEXP immediately sets a | + | *The self-destruct SEXP immediately sets a ship's health to zero. |
− | This triggers the ship's destruct animation rather | + | *This triggers the ship's destruct animation rather than making the ship disappear, if that is what you meant to do, there are better SEXPs ([[ship-vanish]]). |
+ | *Self-destruct will not always trigger the (is-destroyed-delay "Ship that self-destructs") SEXP tree, so it is safer to circumvent it by using the (is-event-true-delay "Event that triggers self-destruct"). | ||
[[Category:Retail SEXPs]] | [[Category:Retail SEXPs]] |
Revision as of 17:55, 28 September 2008
self-destruct Self destruct (Action operator) Causes the specified ship(s) to self destruct. Takes 1 or more arguments... All: Name of ship to self destruct.
- The self-destruct SEXP immediately sets a ship's health to zero.
- This triggers the ship's destruct animation rather than making the ship disappear, if that is what you meant to do, there are better SEXPs (ship-vanish).
- Self-destruct will not always trigger the (is-destroyed-delay "Ship that self-destructs") SEXP tree, so it is safer to circumvent it by using the (is-event-true-delay "Event that triggers self-destruct").