Home   Help Search Login Register  

Author Topic: Changing Unit Sides  (Read 1015 times)

0 Members and 1 Guest are viewing this topic.

MarkQuinn

  • Guest
Changing Unit Sides
« on: 29 Apr 2004, 03:33:39 »
Is there a way to change the side of a unit?

In other words, say I have "west-soldier".  I want to place "west-soldier" on the map but I want him to fight for the east side.

My apologies if this question has been asked (many times) on this forum.

Thank you.

Mark

MarkQuinn

  • Guest
Re:Changing Unit Sides
« Reply #1 on: 29 Apr 2004, 03:39:07 »
BTW I did find this:

Q.
How change west soldier to resistance category?

A.
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

#define private 0
#define protected 1
#define public 2

class CfgPatches
{
class SoldierName
{
units[] = {SoldierName};
weapons[] = {};
requiredVersion = 1.01;
};
};
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{};
class SoldierWG:SoldierWB{};
class SoldierName:SoldierWB

{
displayName="Soldier Name";
model="pbo filep3d file";
side=TGuerrila;
weapons[]={"M16","Throw","Put"};
magazines[]={"M16","M16","HandGrenade"};
};
};

I was actually looking for something simple that can be done in the INIT field.  Am I out of luck?

MQ

Offline SEAL84

  • Members
  • *
  • Always lurking
Re:Changing Unit Sides
« Reply #2 on: 29 Apr 2004, 03:53:33 »
You can group west soldiers to east soldiers of a higher rank and they will consider themselves to be East soldiers.

You can do this and then use deletevehicle this on the east group leader and the effect will be the same, but you will just see the lone west guy (who will fight as an east guy) in the game.

Haven't tried making west soldiers join east soldiers while the game is actually running, but I don't see why it wouldn't work.
« Last Edit: 29 Apr 2004, 03:57:24 by SEAL84 »

MarkQuinn

  • Guest
Re:Changing Unit Sides
« Reply #3 on: 29 Apr 2004, 04:18:05 »
Thanks Seal.  I was leaning in this direction myself but hadn't considered the deletevehicle command.  I was actually going to set the east leader's health to zero and use a script to get rid of all dead bodies on the field.  Your idea is better.  Thank you!

MQ

Offline SEAL84

  • Members
  • *
  • Always lurking
Re:Changing Unit Sides
« Reply #4 on: 29 Apr 2004, 04:21:20 »
rgr that 8)

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Changing Unit Sides
« Reply #5 on: 29 Apr 2004, 07:57:36 »
Quote
Haven't tried making west soldiers join east soldiers while the game is actually running, but I don't see why it wouldn't work.


Nah, unfortunately it doesn't work. The east soldiers will still think the west guy is an enemy, and just kill him. Can't remember if the west guy will shoot at west guys though....
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

xenofanes

  • Guest
Re:Changing Unit Sides
« Reply #6 on: 29 Apr 2004, 09:55:56 »
I think it's also possible to replace "west" with "east" in mission.sqm for the unit.

MarkQuinn

  • Guest
Re:Changing Unit Sides
« Reply #7 on: 03 May 2004, 05:15:20 »
Quote
I think it's also possible to replace "west" with "east" in mission.sqm for the unit.

It works perfectly.  Thank you!

Mark