Home   Help Search Login Register  

Author Topic: Only 1 Boat  (Read 1089 times)

0 Members and 1 Guest are viewing this topic.

Offline Alan34

  • Members
  • *
  • Praise the Lord and pass the Carl Gustav
    • Red Devils
Only 1 Boat
« 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

Offline Pirin

  • Members
  • *
Re: Only 1 Boat
« Reply #1 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

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Only 1 Boat
« Reply #2 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.
"When 900 years YOU reach, look as good you will not!"

Offline Rommel92

  • Members
  • *
Re: Only 1 Boat
« Reply #3 on: 26 Apr 2008, 12:57:33 »
Or in "Condition of Presence" put:
Code: [Select]
isNull boat1