Working on a mod, ran into a slight problem

Discuss stuff related to HaloCE (for modding, go to the HEK General forum).
Post Reply
cain532





Posts: 35
Joined: Wed Sep 15, 2004 4:34 pm

Working on a mod, ran into a slight problem

Post 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?
BrainEater




Wordewatician 100

Posts: 219
Joined: Tue Nov 22, 2005 6:48 pm
Contact:

Post 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

Code: Select all

(sleep <short> <script>)
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.
Signature may not be animated.

Oh really? :P
cain532





Posts: 35
Joined: Wed Sep 15, 2004 4:34 pm

Post by cain532 »

I'll give it a try! Thanks :D
Post Reply