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