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