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 »Scripting Help

Author Topic: Scripting Help (2 messages, Page 1 of 1)
Moderators: Dennis

Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 14, 2009 12:47 PM    Msg. 1 of 2       
How would I make something loop until something happened?
E.G

(global short test 0)

(script continuous test
(set test (+ test 1))
)


I want to repeat this until an AI encounter is dead. Is this possible?


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Feb 14, 2009 12:52 PM    Msg. 2 of 2       
If you mean just to continue setting "test" higher each tick until an AI encounter is dead, then yes. Just make an "if" statement check whether the encounter is dead before setting "test"'s value higher:


(global short test 0)

(script continuous test
(if
(> (ai_living_count "ai") 0)
(set test (+ test 1))
)
)

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 11:40 AM 93 ms.
A Halo Maps Website