Home   Help Search Login Register  

Author Topic: script to test 2 vehicles loaded  (Read 415 times)

0 Members and 1 Guest are viewing this topic.

AUS_Viper

  • Guest
script to test 2 vehicles loaded
« on: 16 Jun 2004, 12:01:40 »
Hi guys,

I have searched the forum and the FAQ and can find plenty of scripts for checking all soldiers have loaded a vehicle and/or chopper before moving on to the next waypoint, but I can't seem to find anything that relates to two vehicles.

Here's what I want to do - I have two vehicles (of the same group) and they move to a HOLD waypoint.

8 men get into the vehicles (usually 4 in each, but could be 3 +5 etc), and I want to check all men are in either of the vehicles before they move to their next waypoint.

the next waypoint would have something simple like condition : movetonextwp which would need to be passed in the script ie movetonextwp=true.

There probably is a simple solution to this, but simple solutions usually elude beginners ;)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:script to test 2 vehicles loaded
« Reply #1 on: 16 Jun 2004, 14:37:17 »
If the walkers have a getin waypoint on the lead vehicle of the transport group, and the transport group has a load waypoint, then it should work without further interference.

If the walkers are led by the player, and therefore can't use waypoints, then there are several ways you could do it.   For example a radio trigger fired by the player "OK, we're all in, lets go" then the player can control things directly.

In general, if you just wanted the scripting solution it might be something like

("_x in lorry1" count units grp1) + ("_x in lorry2" count units grp1) == count units grp1

Syntax not guaranteed.    
Plenty of reviewed ArmA missions for you to play