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) (3 messages, Page 1 of 1)
Moderators: Dennis

Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Mar 16, 2009 03:59 PM    Msg. 1 of 3       
What's wrong with this script:

(script continuous easier
(if
(and
(volume_test_object "wrun" (list_get (players) 0))
(= (unit_get_shield (unit (list_get (players) 0)) 0))
)
(begin
(object_cannot_take_damage (list_get (players) 0))
(sleep_until (= (unit_get_shield (unit (list_get (players) 0))) 1) 15)
(object_can_take_damage (list_get (players) 0))
)
)
)


Help would be appreciated :)
Edited by Gamma927 on Mar 16, 2009 at 03:59 PM


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Mar 16, 2009 04:33 PM    Msg. 2 of 3       
Just a parentheses mix-up:


(script continuous easier
(if
(and
(volume_test_object "wrun" (list_get (players) 0))
(= (unit_get_shield (unit (list_get (players) 0))) 0)
)
(begin
(object_cannot_take_damage (list_get (players) 0))
(sleep_until (= (unit_get_shield (unit (list_get (players) 0))) 1) 15)
(object_can_take_damage (list_get (players) 0))
)
)
)


You put the parentheses after the last "0" in the first (unit_get_shield) line instead of at the end of the (unit_get_shield) command to close it off. It's in bold.
Edited by Me KS on Mar 16, 2009 at 04:35 PM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Mar 16, 2009 06:07 PM    Msg. 3 of 3       
Oh, thanks. I'll be more careful next time.

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 3:03 AM 140 ms.
A Halo Maps Website