Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: CODEDOG ND on December 16, 2001, 03:40:00 pm
-
how do I make it where when a ship gets to a certain percent on its hull that it will depart?
-
Use the hits-left sexp along with less than so that it will jump out as soon as the hull goes below that number. And put it in it's depart cue.
Example:
<
-hits left
-Ship name
%number
-
This is how i do it
when
___(+)<
______(+)Hits-left
_________[]<name of ship>
_________[]<% that you want>
Hope this helps
It could be wrong but works for me...
p.s i alwayts gets my < and > so use the one that means less than, or use the = for a exact number i always use les than.
P.s. sorry for all the (+) and [] 's this is how i write my code down so i know what to use.
Regards
Jon Handby
------------------
Incidental Warfare ("http://handbytec.mystique-empire.com/IW/index.htm")
Cappella went nova, the GTVA stuggles to recover the NTF have broken up into two! And the shivans have a surprise in the bag!
[This message has been edited by Jon Handby (edited 12-16-2001).]
-
thanx