Forum Jump :

Author Message


Posts: 84
Rank:


Level: Member

Country: us
Location: Denver
Occupation: CrazyAce
Age: 37
In-game name:

 
#1 Posted at 2008-08-14 12:22        
     
Let


Author Message

Dead3yez  

I am evil


Posts: 3113
Rank:


Level: Member

Country: en
Location: North Yorkshire
Occupation: dead3yez
Age: 28
In-game name: dead3yez

 
#2 Posted at 2008-08-14 12:40        
     
1. You can either create a group with an Opfor leader.

2. Save your mission in editor, exit the mission. Go to your mission folder and open the mission.sqm with notepad.

You will see something like this. You can change the side of the group and unit to what you need and then save the mission.sqm, go back to the editor and load up your mission. Might be an idea to leave this last though, otherwise when you save in editor I think the default saids are restored. You can change the side to "WEST", "EAST", "GUER", "EMPTY", "CIV".

	class Groups
	{
		items=48;
		class Item0
		{
			side="GUER";
			class Vehicles
			{
				items=1;
				class Item0
				{
					position[]={9872.114258,32.843708,6002.676758};
					id=30;
					side="GUER";
					vehicle="SoldierGB";
					leader=1;
					skill=0.600000;
					text="pilot";
					init="aa = [this] execVM ""pripojeni1.sqf""; this setunitpos ""down"";";
				};
			};
		};

Also this post might come in handy.
http://www.armaholic.com/forums.php?m=posts&q=3049


Advertisement


Author Message


Posts: 84
Rank:


Level: Member

Country: us
Location: Denver
Occupation: CrazyAce
Age: 37
In-game name:

 
#3 Posted at 2008-08-14 13:37        
     
Thnx for the reply Dead Eye, this method works for units already placed on the battlefield, I wasn't aware of how to change them after I place them, this will help me.

So for units that are not placed on the battlefield (units that are spawned) it can be tough to switch those sides around. I guess what I can do is trick the system, by placing the units in question somewhere on the other side of the map and make its present probability to 0, save then edit the mission.sqf of that unit side and it should work


Author Message

Dead3yez  

I am evil


Posts: 3113
Rank:


Level: Member

Country: en
Location: North Yorkshire
Occupation: dead3yez
Age: 28
In-game name: dead3yez

 
#4 Posted at 2008-08-14 14:34        
     
You could make the spawned units join a certain group that would be under opfor command, maybe.

The sides of units are all defined in the configuration files of the game content, same with addons.


Could make civ side enemy and use SoldierWcaptive? Maybe.
http://community.bistudio.com/wiki/ArmA:_Infantry

This post was edited by Dead3yez (2008-08-14 14:39, ago)


Author Message


Posts: 84
Rank:


Level: Member

Country: us
Location: Denver
Occupation: CrazyAce
Age: 37
In-game name:

 
#5 Posted at 2008-08-14 14:54        
     
Dead3yez : The sides of units are all defined in the configuration files of the game content, same with addons.

Ah yes I see what you are saying, that in a units config.cpp file.

class CfgVehicles
{
 	class Land;

	class Man: Land	{
		class ViewPilot;
		};
	class CAManBase;
	class SoldierWB;

	class TESTSOLDIER: SoldierWB{

So then to change this testsoldier class form starting on West to Resistance, I would have to change the "class SoldierWB" to "class SoldierGB"?

class CfgVehicles
{
 	class Land;

	class Man: Land	{
		class ViewPilot;
		};
	class CAManBase;
	class SoldierGB;

	class TESTSOLDIER: SoldierGB{


Author Message

Dead3yez  

I am evil


Posts: 3113
Rank:


Level: Member

Country: en
Location: North Yorkshire
Occupation: dead3yez
Age: 28
In-game name: dead3yez

 
#6 Posted at 2008-08-14 15:02        
     
Woops. I thought this was in the mission editing section. :blush

Yes, that should do the trick. That way it will inherit everything from an Independant soldier apart from class Wounds, which you will have to later define. You can also change the side with side = and whatever value it was defined as at the start of the config.


Author Message


Posts: 84
Rank:


Level: Member

Country: us
Location: Denver
Occupation: CrazyAce
Age: 37
In-game name:

 
#7 Posted at 2008-08-14 16:03        
     
Deadeyez; you


Author Message


Posts: 333
Rank:


Level: Member

Country: lb
Location: Beirut
Occupation: Student\LAF Team Leader\الله و جيش لبنان
Age: 24
In-game name: Maddii

 
#8 Posted at 2008-08-18 22:33        
     
letss say i dounloaded some soldiers and wanted to change ther side do i do the same thing

Student, Gamer, Modeler, Musician, Soldier in the Army


Author Message

Dead3yez  

I am evil


Posts: 3113
Rank:


Level: Member

Country: en
Location: North Yorkshire
Occupation: dead3yez
Age: 28
In-game name: dead3yez

 
#9 Posted at 2008-08-18 23:17        
     
That would depend totally on how the addon config file was setup. Why don't you just use the mission editing version of how to do it like I explained earlier. It's easier that way.


Author Message


Posts: 84
Rank:


Level: Member

Country: us
Location: Denver
Occupation: CrazyAce
Age: 37
In-game name:

 
#10 Posted at 2008-08-19 01:10        
     
And deadeyes is right, except for when it comes to spawning characters, the only way (at least for Warfare) is to edit the config.cpp (config.bin) file, which sometimes depending on the mod can be frustrating as every mod uses different configuration formats.