Jump to content
Sign in to follow this  
MassDefibrillator

Help with Condition of Presence dependent variable

Recommended Posts

So I'm setting up a mission where i have a helicopter with a 50% chance to spawn, and i only want a nearby hunter spawn if the helicopter does not. At the moment i am currently trying to accomplish this with the condition of presence field for the hunter, but i have no experience scripting in Arma 3.

this is the psuedo code of what I'm attempting

Legend

Condition of presence=cop

If chopper=true then hunter_cop=!true

else hunter_cop=true

I do not know the specific code to get this done in Arma 3 though. Any help with this it would be much appreciated.

thanks

Share this post


Link to post
Share on other sites

Create a trigger and group it to your helicopter, set it to Not Present. Make sure the trigger is directly over the helicopter.

On Act.: _veh = createVehicle ["B_Hunter_F", getMarkerPos "markerSpawn", [], 0, "NONE"]

Create a marker named markerSpawn and place it over the helicopter.

Share this post


Link to post
Share on other sites

For future reference, there's a simpler way:

* name the helicopter (let's say heli)

* Hunter's Condition of presence field: isNil "heli"

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  

×