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... again

Author Topic: scripting... again (5 messages, Page 1 of 1)
Moderators: Dennis

aZn9ja37
Joined: Apr 13, 2010

....????!!!!!


Posted: May 3, 2010 12:01 PM    Msg. 1 of 5       
with gamma's help i got a script of replacing the flashlight with active camo. but it allows an infinite use and no recharge. what do i add to this script to fix that


(global short cooldown 0)

(script continuous decrementIfBiggerThanLin
(if
(> cooldown 0)
(begin
(set cooldown (- cooldown 1))
(sleep 30)
)
)
)

(script continuous camo
(if
(= (unit_get_current_flashlight_state (unit (list_get (players) 0))) true)
(begin
(unit_set_desired_flashlight_state (unit (list_get (players) 0)) false)
(if
(= cooldown 0)
(begin
(set cooldown 30)
(object_create_anew camo)
(objects_attach (unit (list_get (players) 0)) "" camo "")
(objects_detach camo (unit (list_get (players) 0)))
)
)
)
)
)


guardian25
Joined: Apr 30, 2010

balance is everything


Posted: May 3, 2010 10:10 PM    Msg. 2 of 5       
i dont know much about scripting but i think "(script continuous camo" might have something to do with this. but i dont know much about scripting yet, or try a limit if you havent already
Edited by guardian25 on May 3, 2010 at 10:12 PM


aZn9ja37
Joined: Apr 13, 2010

....????!!!!!


Posted: May 4, 2010 12:36 AM    Msg. 3 of 5       
well i am acutally new to scripting so idk how to add a limit


aZn9ja37
Joined: Apr 13, 2010

....????!!!!!


Posted: May 5, 2010 01:13 PM    Msg. 4 of 5       
could you give me the flahslight script


aZn9ja37
Joined: Apr 13, 2010

....????!!!!!


Posted: May 5, 2010 03:07 PM    Msg. 5 of 5       
so do u kno where to get it?

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 3:50 AM 141 ms.
A Halo Maps Website