Ok the problume i have is that i am trying to make a script to spawn vehicles.
The idea is so you can have a vehicle spawn becide you every time you die so what i have done is made a area for all of the vehicles to spawn into and when 1 is needed it teleports it out of this area to the flag that goes with the spawn point for the player.
I have it working in a fashion but instead of just 1 hog being moved all 4 get moved and i cant see why.
here is the script i have so far
(script continuous spawn2
;; **** spawn 2 ****
(if (= (volume_test_objects spawn2 (players)) true)
(begin
(cond
((= (volume_test_objects trigger1 hog1) true)
(begin
(object_teleport hog1 flag2)
(object_set_facing hog1 flag2)
(sleep_until (= (volume_test_objects spawn2 (players)) false))
)
)
((= (volume_test_objects trigger1 hog2) true)
(begin
(object_teleport hog2 flag2)
(object_set_facing hog2 flag2)
(sleep_until (= (volume_test_objects spawn2 (players)) false))
)
)
((= (volume_test_objects trigger1 hog3) true)
(begin
(object_teleport hog3 flag2)
(object_set_facing hog3 flag2)
(sleep_until (= (volume_test_objects spawn2 (players)) false))
)
)
((= (volume_test_objects trigger1 hog4) true)
(begin
(object_teleport hog4 flag2)
(object_set_facing hog4 flag2)
(sleep_until (= (volume_test_objects spawn2 (players)) false))
)
)
)
)
)
)
As far as i can see it should sleep until the player leaves the spawn point but i just keeps on going.
HELP plz