Home   Help Search Login Register  

Author Topic: Making Civilians join Opfor and giving them Weapons  (Read 2881 times)

0 Members and 1 Guest are viewing this topic.

Offline Dj Tano

  • Members
  • *
Making Civilians join Opfor and giving them Weapons
« 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?

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Re: Making Civilians join Opfor and giving them Weapons
« Reply #1 on: 24 Mar 2007, 19:11:47 »
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:
Code: [Select]
removeallweapons _unit; 
_unit addmagazine "30Rnd_556x45_G36";
_unit addmagazine "30Rnd_556x45_G36";
_unit addweapon "G36k";
or straight into the unit's init field:
Code: [Select]
removeallweapons this; this addmagazine "15Rnd_9x19_M9"; this addweapon "M9" ;this addmagazine "15Rnd_9x19_M9";
just setpos & forgetpos!

Offline Dj Tano

  • Members
  • *
Re: Making Civilians join Opfor and giving them Weapons
« Reply #2 on: 25 Mar 2007, 01:22:34 »
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?

Offline BensTooCool

  • Members
  • *
Re: Making Civilians join Opfor and giving them Weapons
« Reply #3 on: 25 Mar 2007, 03:37:20 »
You could try using setFriend, not sure if it works with the civilian side but it might be worth trying.

"east setFriend [civilian, 0]"

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Making Civilians join Opfor and giving them Weapons
« Reply #4 on: 25 Mar 2007, 04:44:58 »
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
I know a little about a lot, and a lot about a little.

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Making Civilians join Opfor and giving them Weapons
« Reply #5 on: 25 Mar 2007, 19:10:13 »
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.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline sharkattack

  • Former Staff
  • ****
Re: Making Civilians join Opfor and giving them Weapons
« Reply #6 on: 25 Mar 2007, 19:30:39 »
Quote
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


"HOLY SARDINE" - see Shark-Attack meet his match