OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: sharkattack on 21 Jul 2007, 18:50:41
-
hi
having trouble with mission ...
how can i make it so that if a teamleader (playable) is not selected at start of mission
then his teammates (non playable) do not appear at start of mission ?
any help greatly appreciated ???
-
A simple way would be a trigger
Condition:
(leader groupname) != player
On Activation
{deletevehicle _x} foreach units groupname
-
edit
====
dosnt seem to work
???
edit works if ai is left on but if player turns of group leader other team mates apear
-
Hmmm.
Silly question but have you got the
groupname = group this in the leaders init only?
It will need to be in one of the AI's init as well.
-
This can be done very easy and without scripting or triggers.
First, name the playable unit, i.e. "MyLeader".
Then in the AI which are grouped with this unit, in the line "Condition of presence" (near bottom of dialog) just write:
(alive MyLeader)
This way, the AI will only be present if Teamleader is. I don't know if or how this works @ JIP
-
solved thanks myke13021 :good: