OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Dj Tano on 24 Mar 2007, 17:31:26
-
Hey guys,
i was trying to get civilians to be on Opfors side, and it works if i put them in the same group as an opfor soldier, but is it possible to do so without having to put them in the opfor group?
also, how can i give them a weapon?
-
You'de need a east groupleader somewhere on the map for it to work. I don't know of a singe command that sets a unit to a spesific side - without a unit from that side already present. I think mosty peeps use the group command to link/set sides.
add weapons via sqs:
removeallweapons _unit;
_unit addmagazine "30Rnd_556x45_G36";
_unit addmagazine "30Rnd_556x45_G36";
_unit addweapon "G36k";or straight into the unit's init field:
removeallweapons this; this addmagazine "15Rnd_9x19_M9"; this addweapon "M9" ;this addmagazine "15Rnd_9x19_M9";
-
well the big problem is that i cant put them into a position and let them stay there, because theyll just run off to their leader...
doesnt anyobdy know how to set them to a specific side?
-
You could try using setFriend, not sure if it works with the civilian side but it might be worth trying.
"east setFriend [civilian, 0]"
-
If I remember correctly, civilians are aligned to resistance, in the case of ArmA this would be Independent side.
If BLUEFOR are friendly to Independent then both are hostile to OPFOR.
If BLUEFOR are hostile to Independent then Independent are either hostile to both or only hostile to BLUEFOR
If Independent are hostile to both BLUEFOR and OPFOR then so are the civilians.
In short, whoever the Independent side is friendly to, so also is the civilian side friendly to........and vica versa.
Planck
-
Here's a few things you can try, depending on your desired result:
1. doStop unit;
doStop should keep a unit in one place, until ordered to move on again (or possibly until is AI makes him move again).
2. unit disableAI "MOVE";
disableAI "MOVE" will definitely keep a unit in one place. He can still shoot. This is good for behing a low wall, or behind a window. If you put a guy behind a window, facing out, the following will keep him standing up, and not moving anywhere else:
unit setUnitPos "UP";
unit disableAI "MOVE";
To allow unit to move again, use this command: unit enableAI "MOVE";
3. If you want a civilian to be a member of opfor, but without an opfor leader then do this:
a. Create your civilian unit
b. Create an OPfor unit with "Probability of Presence" set to zero
c. Group the civilian unit to the Opfor unit
When the mission starts, there will be no Opfor unit, but this civilian will act as an OPFOR unit, and will be treated as an OPFor unit by all other units in the game.
-
3. If you want a civilian to be a member of opfor, but without an opfor leader then do this:
a. Create your civilian unit
b. Create an OPfor unit with "Probability of Presence" set to zero
c. Group the civilian unit to the Opfor unit
When the mission starts, there will be no Opfor unit, but this civilian will act as an OPFOR unit, and will be treated as an OPFor unit by all other units in the game.
note .. that triggers will not be activated by civilians if they are grouped with not present opfor /blufor units...change to activated by east or west accordingly