A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »Stupid scripting question

Author Topic: Stupid scripting question (3 messages, Page 1 of 1)
Moderators: Dennis

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.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 10:46 AM 157 ms.
A Halo Maps Website