Jump to content
Sign in to follow this  
Cortez

Trigger

Recommended Posts

How track objects moving inn to a trigger zone?

I want to pass the objects name into a script and put a camera on the object.

No i dont want to use the camera controll in the trigger itself.

I found out the following:

Now i get the first dude to do a pushup.

But when anyone else enter the trigger zone nothing happens.

If all leave the trigger zone and enter it again the first person

must take the pushup.

How do get this to work on everybody entering the trigger zone since the trigger seams to activate just once and stay active until everyone leaves?

Thanx in advance.

Trigger set to activate by anybody

Init line of trigger: [thislist] exec "objpass.sqs"

objpass.sqs file:

; Get the array from trigger

_obj = _this select 0

; Select first person from thislist

_person = _obj select 0

; Make the unit do a push up

_person SwitchMove "FXStandDip"

exit

Share this post


Link to post
Share on other sites

trigget activ:west or east presents

onActiv:[thislist] exec "objpass.sqs"

objpass.sqs:

_num=count thislist

_n=0

#begin

_person = thislist select _n

_person SwitchMove "FXStandDip"

_n=_n+1

?_n<_num:goto"begin"

exit

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×