Jump to content
Sign in to follow this  
Merad

Is distance to an item the best way?

Recommended Posts

I'm trying to get a mission end to trigger if a certain vehicle is in an area.

Whats the best way to do this? Should I use an entire script? Is there an easier way?

---------- Post added at 08:43 PM ---------- Previous post was at 07:36 PM ----------

How would I do a "Distance too" check? I'm thinking this is the easiset way.

If "Distance" from "Vehicle" to "Objective" is less than "Amount" then End1

How do I do that? I'm reading the ARMA guide about Position but I'm having a hard time translating that into the code I need.

Share this post


Link to post
Share on other sites

yes, distance is one of the best way.

In your trigger:

//--- Condition:
//--- vehicleName is the name of your vehicle & Objective is an object.
vehicleName distance Objective < amount

//--- Activation:
End1

Share this post


Link to post
Share on other sites

Set up a Trigger that covers the area you're intersted in. Set the Trigger to activate on Anybody, Present, Repeatedly . Put this in it's Condition field:

vehicleName in thislist;

Edited by kylania

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  

×