Jump to content
BikerJoe

Unit/Object Present activates trigger

Recommended Posts

Hello everyone and sorry if this has been covered, a did a search but couldn't see anything, Its probably a simple answer I just couldn't think of it!
 

So I have an object with the variable name "CHINOOK". What I want to do is when the "CHINOOK" (to be flown by a player) enters the area covered by a trigger it activates. I don't want to do a simple BLUFOR present on the trigger as its for an extraction and I don't want it to trigger when the ground units enter the area but when the extraction heli enters the trigger area.

Share this post


Link to post
Share on other sites

You can set your CHINOOK to trigger owner and change trigger activation condition to

this and { player in (thisList select 0) }

 

  • Like 1

Share this post


Link to post
Share on other sites
15 hours ago, Schatten said:

You can set your CHINOOK to trigger owner and change trigger activation condition to

this and { player in triggerAttachedVehicle thisTrigger }

Not that it makes any difference but if you are attaching a vehicle as an owner there is a command to retrieve the said vehicle.

  • Like 2

Share this post


Link to post
Share on other sites

anyPlayer present

condition: {vehicle _x == CHINOOK} count thisList >0

  • Like 1

Share this post


Link to post
Share on other sites
18 minutes ago, pierremgi said:

condition: {vehicle _x == CHINOOK} count thisList >0

Slight improvement:

(thisList findIf { (objectParent _x) == CHINOOK }) >= 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

×