Home   Help Search Login Register  

Author Topic: How to change an unit's side?  (Read 6540 times)

0 Members and 1 Guest are viewing this topic.

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
How to change an unit's side?
« on: 31 Aug 2010, 07:43:26 »
From what I recall there is the trick to change a unit side:

# Group your unit with the another side's unit.
# Have the later be the leader.
# Remove the leader.
# The unit is now assigned to the other side.

Correct?

Are there any limits to this? MP? Human players?
Or what happens when you selectPlayer an unit from the other side?

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: How to change an unit's side?
« Reply #1 on: 31 Aug 2010, 23:11:21 »
The suggested method works in both MP and SP. As far as I know it can be used for human players as well (havent tried since OFP though). The unit will keep it's scripted FSM behaviour after the change, so a civilian unit grouped to a (non existing) East guy will take cover and hide like a civillian, even if you give him a rifle.

You may also change a units loyalty by editing it's side in the mission.sqm (opens with any text editor). No need to group the unit to a non exsting leader if you chose this method.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: How to change an unit's side?
« Reply #2 on: 01 Sep 2010, 12:01:27 »
Thanks nominesine  :good:

To clarify I am mostly interested in dynamic changing of the units side.

Or in other words I use selectPlayer to change the player model.
Now it would be nice, if this is not limited to changing to units on your own side
and not messing up AI behavior. Therefore the original player side must be kept intact.

Offline Pirin

  • Members
  • *
Re: How to change an unit's side?
« Reply #3 on: 11 Sep 2010, 11:09:29 »
A current beta introduced side change on join!  :good:

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: How to change an unit's side?
« Reply #4 on: 12 Sep 2010, 11:47:08 »
Introduced? It disables it, right?

Code: [Select]
  [73204]  Fixed: Join group changes unit's side
 ???

Offline ZapBrannigan

  • Members
  • *
Re: How to change an unit's side?
« Reply #5 on: 12 Sep 2010, 14:40:49 »
you also can change a unit to the civilian side by setting him captive  ** setcaptive true