OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: moviemaker100 on 05 Jan 2012, 12:02:05

Title: Side changeing
Post by: moviemaker100 on 05 Jan 2012, 12:02:05
I just wanted to change the side of an unit.
Ok. I edited the config.cpp and changed the side entry.
Ok. The unit now was in the editor on the other, wished side.
BUT:
Not ok. The unit didn“t attack the "new" enemies as they normally have done.

So the side change must have any more entries to change, to make all game attacking scripts real work.

So: Has anyone any idea, what else I have to change to get an unit "fully" from east to west ?

Thanx!!
Title: Re: Side changeing
Post by: h- on 05 Jan 2012, 15:12:12
Just curious, is this for OFP Elite, the xbox OFP or the PC version?
Title: Re: Side changeing
Post by: moviemaker100 on 06 Jan 2012, 00:29:33
PC Version.

*ooops*
I estimate, I have choosen the wrong forum - as it seems.

May I ask you to move it to the right forum..?

Thanx!
Title: Re: Side changeing
Post by: h- on 06 Jan 2012, 09:25:07
Moved :)
Assuming that this is a addon related question since it involves config editing..

Sorry that I have no useful hints for your problem to offer.
Title: Re: Side changeing
Post by: Mikero on 28 Jan 2012, 08:51:20
there is nothing further in an ofp config.cpp that you need to do other than

side = 0,1,2,3

if the unit is not 'attacking' his experience level setFleeMode may have happened. but, it isn't the config per se

you are also better off deriving a class not altering an existing class, because cfgGroups might affect the outcome.

to derive a class:

class MyNewSoldier: SoldierEB // as an eg
{
   side=3; // make him a civilian
   Displayname="My new civilian";
};