Home   Help Search Login Register  

Author Topic: UnassignVehicle  (Read 750 times)

0 Members and 1 Guest are viewing this topic.

Offline 999chris

  • Members
  • *
  • I'm a llama!
UnassignVehicle
« on: 05 Apr 2005, 15:50:13 »
Ello again... how do you "UnassignVehicle" for a whole group? one of my groups are called grp1... at the moment im trying... 'UnassignVehicle grp1' not working though... any help?

StonedSoldier

  • Guest
Re:UnassignVehicle
« Reply #1 on: 05 Apr 2005, 15:53:16 »
{UnassignVehicle _x} foreach units grp1

Offline Pilot

  • Contributing Member
  • **
Re:UnassignVehicle
« Reply #2 on: 05 Apr 2005, 15:54:08 »
Hey 999chris,

Try this:
Code: [Select]
{UnassignVehicle _x} foreach units grp1
EDIT
Too slow, again.
« Last Edit: 05 Apr 2005, 15:54:47 by Student Pilot »

Offline 999chris

  • Members
  • *
  • I'm a llama!
Re:UnassignVehicle
« Reply #3 on: 07 Apr 2005, 00:07:58 »
Nice one guys... quick question though... whats the diffrence betwwen {}, [] and () ?

Offline Pilot

  • Contributing Member
  • **
Re:UnassignVehicle
« Reply #4 on: 07 Apr 2005, 00:17:38 »
I believe {} are equivalent to parenthesis
[] have to do with arrays
I am not too sure what the () do

EDIT:
Sorry, I meant to say {} are equivalent to quotes, I don't know where parenthesis came from ::)
« Last Edit: 07 Apr 2005, 00:27:22 by Student Pilot »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:UnassignVehicle
« Reply #5 on: 07 Apr 2005, 00:22:30 »
[] is used to define an array

() are just brackets, to make sure logical and arithmetic operations happen in the right order

{} indicate strings or code.  Sometimes they are equivalent to quotes " ".

<> has no meaning as brackets, these symbols are used for less than and greater than.

If you use the wrong type of bracket your code won't work.
Plenty of reviewed ArmA missions for you to play