OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: penguinman on 16 Jul 2006, 06:53:06
-
Hey, I havent played ofp in so long that now im a complete noob. but anyways I cant figure out how to remove the player from the group hes in, put him in his own group, then take 2 other guys out of a group and add them to the players new group. I know it uses join grp null, and join grp player, but I dont know in which order.
help me please.
thanks
-
Remove the player from his group (where player is the name of the player's unit):
[player] join GrpNull
If you want to give a name to the new group:
alpha = group player
Let two soldiers leave their group:
[soldier1,soldier2] join GrpNull
Let the two soldiers join their new group.
[soldier1,soldier2] join alpha
Untested, but this should do it.
[player] join GrpNull
alpha = group player
[soldier1,soldier2] join GrpNull
[soldier1,soldier2] join alpha
-
It Works!
thanks