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

Title: FRED2 question
Post 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?
Title: FRED2 question
Post by: Woomeister on December 16, 2001, 03:46:00 pm
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
Title: FRED2 question
Post by: Jon Handby on December 16, 2001, 03:48:00 pm
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).]
Title: FRED2 question
Post by: CODEDOG ND on December 16, 2001, 04:35:00 pm
thanx