OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
{UnassignVehicle _x} foreach units grp1
-
Hey 999chris,
Try this:
{UnassignVehicle _x} foreach units grp1
EDIT
Too slow, again.
-
Nice one guys... quick question though... whats the diffrence betwwen {}, [] and () ?
-
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 ::)
-
[] 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.