Jump to content

Recommended Posts

Hi guys, Ive been trying to get a few bar gates to open automatically when a vehicle enters a trigger area. I am trying to get the trigger to fire when ANY vehicle (land vehicle) is inside the area. I know I can do this by naming each vehicle but I would rather have a general solution that works for any vehicle that is occupied by a side AI and or Players alike. I have tried typeof and Iskindof but I think my syntax is wrong in each case. Thanks!

Share this post


Link to post
Share on other sites

Activation: none
Activation type: Present 

({_x inArea thisTrigger} count (vehicles select {_x isKindOf "LandVehicle"})) > 0

 

or

Activation: Anyone
Activation type: Present

this && {({_x isKindOf "LandVehicle"} count thisList) > 0}

 

  • Like 1

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

×