
Heatguts
Joined: Jun 6, 2014
Recon Armor FTW!
|
Posted: Jun 22, 2014 07:44 PM
Msg. 1 of 3
This seems really stupid but I cannot figure out how it is done.
I want a script to sleep until all the ais in an encounter are dead. My script looks like this:
(sleep_until (ai_living_count (encountername) 0)15)
And I cannot figure out how to get it to sleep until it returns zero. I know the zero doesn't go there, so where does it go?
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Jun 22, 2014 10:24 PM
Msg. 2 of 3
(sleep_until (= (ai_living_count encounter_name) 0))
Although, unless its impossible to miss the AI, you should probably check if the AI count is less than something like 3, and whether the AI are aware of you (so that way you don't get stuck hunting AI that have wandered off somewhere that aren't part of the fight)
|

Heatguts
Joined: Jun 6, 2014
Recon Armor FTW!
|
Posted: Jun 23, 2014 07:28 AM
Msg. 3 of 3
Thanks!
I have arranged the firing positions though so that you cannot escape them. They spawn in isolated locations right next to you (but out of sight) and when they see you there will be trouble or there will be you winning because you brought the right weapons.
|