Page 1 of 1
Working on a mod, ran into a slight problem
Posted: Sun Dec 21, 2008 6:26 pm
by cain532
The script i have involves a volume trigger that will kill the player after a timed amount. I have it set to do this because I do not want players going to a certain part of the level too soon. Is there a way to deactivate the script after a certain point?
Posted: Sun Dec 21, 2008 7:33 pm
by BrainEater
I think the sleep command would work, but I am not sure.
Im going to post this here, while I look for it.
Will edit the result later.
Edit: It goes like this
So it would be something like this (if your trigger volume was named trig1)
Code: Select all
(script triggerstopkilling
(sleep_until (= (volume_test_object trig1 player0) true) 5)
(sleep 99999999999999999 trig_kill))
Just to say ahead of time, Im not sure if thatll work. It MIGHT, but I was just making the script to what you needed.
Posted: Mon Dec 22, 2008 2:50 pm
by cain532
I'll give it a try! Thanks
