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 »Timer

Author Topic: Timer (7 messages, Page 1 of 1)
Moderators: Dennis

Kustrin 117
Joined: Aug 6, 2009

\


Posted: Feb 15, 2010 05:23 AM    Msg. 1 of 7       
What should I do if I I want the timer goes up, not going down, like in this video by Gamma.
http://www.youtube.com/watch?v=bsW6yGzPhA4


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Feb 15, 2010 12:24 PM    Msg. 2 of 7       
I made a script for that a long time ago. You'll have to tweak it to actually implement it in whatever you're doing though. As it is it'll just start counting up right away and won't stop.

(global short ticks 0)
(global short seconds 0)
(global short minutes 0)

(script continuous manage_ticks
(set ticks (+ ticks 1))
(if
(>= ticks 30)
(begin
(set seconds (+ seconds 1))
(set ticks 0)
)
)
(if
(>= seconds 60)
(begin
(set minutes (+ minutes 1))
(set seconds 0)
)
)
(hud_set_timer_time minutes seconds)
)


Kustrin 117
Joined: Aug 6, 2009

\


Posted: Feb 16, 2010 01:38 AM    Msg. 3 of 7       
Quote: --- Original message by: Me KS
I made a script for that a long time ago. You'll have to tweak it to actually implement it in whatever you're doing though. As it is it'll just start counting up right away and won't stop.

(global short ticks 0)
(global short seconds 0)
(global short minutes 0)

(script continuous manage_ticks
(set ticks (+ ticks 1))
(if
(>= ticks 30)
(begin
(set seconds (+ seconds 1))
(set ticks 0)
)
)
(if
(>= seconds 60)
(begin
(set minutes (+ minutes 1))
(set seconds 0)
)
)
(hud_set_timer_time minutes seconds)
)

If I want to stop the timer, should I use the command that stops the timer???


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 16, 2010 11:04 AM    Msg. 4 of 7       
(global short ticks 0)
(global short seconds 0)
(global short minutes 0)
(global boolean run true)

(script continuous manage_ticks
(if
(= run true)
(begin
(set ticks (+ ticks 1))
(if
(>= ticks 30)
(begin
(set seconds (+ seconds 1))
(set ticks 0)
)
)
(if
(>= seconds 60)
(begin
(set minutes (+ minutes 1))
(set seconds 0)
)
)
(hud_set_timer_time minutes seconds)
(pause_hud_timer true)
)
)
)


Set the boolean "run" to false.


Kustrin 117
Joined: Aug 6, 2009

\


Posted: Feb 17, 2010 05:30 AM    Msg. 5 of 7       
Quote: --- Original message by: Gamma927
(global short ticks 0)
(global short seconds 0)
(global short minutes 0)
(global boolean run true)

(script continuous manage_ticks
(if
(= run true)
(begin
(set ticks (+ ticks 1))
(if
(>= ticks 30)
(begin
(set seconds (+ seconds 1))
(set ticks 0)
)
)
(if
(>= seconds 60)
(begin
(set minutes (+ minutes 1))
(set seconds 0)
)
)
(hud_set_timer_time minutes seconds)
(pause_hud_timer true)
)
)
)


Set the boolean "run" to false.

If I want to stop the timer???
What should I write if I want to stop the timer after a AI encounter is dead??


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Feb 17, 2010 11:04 AM    Msg. 6 of 7       
(sleep_until (= (ai_living_count [AI]) 0) 15)
(set run false)


Kustrin 117
Joined: Aug 6, 2009

\


Posted: Feb 18, 2010 07:52 AM    Msg. 7 of 7       
K.

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 3:18 AM 265 ms.
A Halo Maps Website