OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Alan34 on 26 Apr 2008, 04:40:11
-
I have two boats (boat1 and boat2) and the probability of presence of boat1 is 50%, probability of presence of boat2 is 100%. What I need is if boat1 is in game, boat2 does not exist. If boat1 is not in game, boat2 exists. What is the best way to do this?
Many thanks;
Alan
-
Maybe just have one boat and try something like this to make it respawn when it dies?
Vehicle Respawn Script: http://www.armaholic.com/page.php?id=786 (http://www.armaholic.com/page.php?id=786)
-
Hey there Alan!
Maybe something like this:
if (!(isNull boat1)) then {deletevehicle boat2};
Or in a trigger
Condition:!isNull boat1
On Activation: deletevehicle boat2
Try it out!
Wolfrug out.
-
Or in "Condition of Presence" put:
isNull boat1