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 »Scripted encounters.

Author Topic: Scripted encounters. (3 messages, Page 1 of 1)
Moderators: Dennis

Suprememessage
Joined: Aug 6, 2012

I am shadow, I am darkness, and I fear nothing.


Posted: Aug 7, 2012 01:22 PM    Msg. 1 of 3       
I have been modding for a while and have pretty much mastered adding basic AI to a map. However I am yet to figure out how to script in such a way that when I defeat one encounter another one will spawn (A different encounter) how would I script them together in such a way?


MatthewDratt
Joined: Sep 11, 2010

TAKEDOWN IS OUT MattDratt.com


Posted: Aug 7, 2012 01:58 PM    Msg. 2 of 3       
(ai_place firstencounter)
(sleep_until (= (ai_living_count firstencounter) 0) 15)
(ai_place secondencounter)

Make sure your encounters are set with 'not initially created'


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Aug 8, 2012 03:24 AM    Msg. 3 of 3       
What MattDratt said.

You could even play around with it. Say you wanted to make the second encounter spawn when there are 5 guys left in the first encounter.

(ai_place firstencounter)
(sleep_until (<= (ai_living_count firstencounter) 5) 15)
(ai_place secondencounter)

Thus, it would check to see if there are 5 or less guys left alive and spawn the next encounter.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 11:55 PM 453 ms.
A Halo Maps Website