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 »A quick scripting question

Author Topic: A quick scripting question (1 messages, Page 1 of 1)
Moderators: Dennis

MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Aug 8, 2012 10:48 AM    Msg. 1 of 1       
Hey guys, I wrote a script that checks if you're inside a volume and sets a global to true, then I want it to set the global false when you leave the volume. The volume's name is turretzone.

(scrip continuous turretzone_checker
(sleep_until (volume_test_objects turretzone (players)))
(set in_turret_zone true)
(sleep_until (= (volume_test_objects turretzone (players)) false))
(set in_turret_zone false)
(unit_set_desired_flashlight_state (unit (list_get (players) 0)) true)
)

Did I do the check right? Or is it even possible to check if someone is outside of a volume?

Thanks.
Edited by MoooseGuy on Aug 8, 2012 at 10:49 AM

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 3:17 PM 125 ms.
A Halo Maps Website