Jump to content
Sign in to follow this  
robertoHrvat

How to make East unit to West side?

Recommended Posts

Hi, how can i make east unit on west side? on example:How East Soldier with AK74 put on West side, In some missions what I was edit I was see resistance unit on west side (I don't talking about setting east soldier in group of west officer). Can anybody help me please ?

2. Example: When I was editing (in Mission Editor) Nogova Virus - return I was see civilian on east side. That's it!

Thanks!

Share this post


Link to post
Share on other sites

Very easy and very well known solution :

(1) Group the east unit with a west unit as leader (bigger rank) ;

(2) Set the probability of presence of the west unit to 0 in the unit menu (or write "deletevehicle this" in its init line) to make it disappear.

Share this post


Link to post
Share on other sites

I know it with grouping and deletevehicle,probability of presence, I was think on this:

Hows to make on example east unit on west side (Originaly side, to he create as green, like original soldier from my side!) I was see that in mission editor (In mission editor I was opened mission Nogova Virus - Return, and I was see civilian women on east side, original side, and she was red like as originaly unit of east side.) Hows make it?

Edited by robertoHrvat

Share this post


Link to post
Share on other sites

hi,

I know it with grouping and deletevehicle,probability of presence, I was think on this:

Hows to make on example east unit on west side (Originaly side, to he create as green, like original soldier from my side!) I was see that in mission editor (In mission editor I was opened mission Nogova Virus - Return, and I was see civilian women on east side, original side, and she was red like as originaly unit of east side.) Hows make it?

There's a solution for what you want, it's how it's made in nogova virus.

- Place the soldier you want to change the side on the map and name it whatever you want.

- Save the mission.

- Load another mission or quit the editor for the main ofp menu.

- ctrl+alt+delete to go back to your desktop.

- find the mission you just saved (usually in C:\Program Files\Codemasters\Operation Flashpoint\Users\YourName\missions) and open it in a text editor

You should have something like this:

version=11;
class Mission
{
randomSeed=2195459;
class Intel
{
};
[b][color="Red"]	class Groups
{
	items=1;
	class Item0
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={9698.519531,29.834999,3881.333252};
				id=0;
				side="WEST";
				vehicle="SoldierWB";
				player="PLAYER COMMANDER";
				leader=1;
				skill=0.600000;
			};
		};
	};
};
};[/color][/b]
class Intro
{
randomSeed=14988291;
class Intel
{
};
};
class OutroWin
{
randomSeed=8779779;
class Intel
{
};
};
class OutroLoose
{
randomSeed=865795;
class Intel
{
};
};

In this example SoldierWB is a west soldier if you want to have east soldier but west side you must change SoldierWB by SoldierEB

Here's a link to all valid classname for ofp 1.96 LINK HERE

Or you can change the side EAST to WEST or CIV to EAST you can do what you want. There's a side for the group and the side for the vehicle then don't forget to change both sides or it won't work.

Valid sides in ofp 1.96 are:

WEST (US)

EAST (USSR)

GUER (Resistance)

CIV (Civilian)

When you have done that save the mission file, come back to the game, load the mission and the west soldier becomes east soldier or whatever side you changed.

If you have a lot of soldiers to change side I suggest you to use the function replace by in your text editor and then replace EAST by WEST or whatever side you want to change.

IMPORTANT: if you double click on the unit you changed to change for example his init field his side will come back to default and then you'll have to remake the same stuff again so to avoid that I recommand to give the name and init field before to don't have to open the unit again.

NB: You can copy and paste the unit you changed in the editor, it'll keep the side changed.

cya.

Nikiller

Edited by Nikiller

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×