OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Alan34 on 26 Apr 2008, 04:40:11

Title: Only 1 Boat
Post 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
Title: Re: Only 1 Boat
Post by: Pirin on 26 Apr 2008, 06:50:03
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)
Title: Re: Only 1 Boat
Post by: Wolfrug on 26 Apr 2008, 09:03:20
Hey there Alan!

Maybe something like this:

Code: [Select]
if (!(isNull boat1)) then {deletevehicle boat2};

Or in a trigger

Code: [Select]
Condition:!isNull boat1
On Activation: deletevehicle boat2

Try it out!

Wolfrug out.
Title: Re: Only 1 Boat
Post by: Rommel92 on 26 Apr 2008, 12:57:33
Or in "Condition of Presence" put:
Code: [Select]
isNull boat1