OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 999chris on 05 Apr 2005, 15:50:13

Title: UnassignVehicle
Post by: 999chris 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?
Title: Re:UnassignVehicle
Post by: StonedSoldier on 05 Apr 2005, 15:53:16
{UnassignVehicle _x} foreach units grp1
Title: Re:UnassignVehicle
Post by: Pilot on 05 Apr 2005, 15:54:08
Hey 999chris,

Try this:
Code: [Select]
{UnassignVehicle _x} foreach units grp1
EDIT
Too slow, again.
Title: Re:UnassignVehicle
Post by: 999chris on 07 Apr 2005, 00:07:58
Nice one guys... quick question though... whats the diffrence betwwen {}, [] and () ?
Title: Re:UnassignVehicle
Post by: Pilot 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 ::)
Title: Re:UnassignVehicle
Post by: macguba 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.