Jump to content
Sign in to follow this  
eagledude4

[Mission Editor] Making sides friendly to certain units

Recommended Posts

I apologise if this is in the wrong forum, I looked briefly and didn't see any forums for mission editor or scripting

I'm making a mission with Independants (PMC's), and Civilians (Citizens and Police Officers). How do I make the Independant PMC's only friendly to the Police Officers?

Share this post


Link to post
Share on other sites

Doesnt setFriend only work for sides, and not units?

---------- Post added at 01:07 ---------- Previous post was at 23:46 ----------

Until I find a solution, I'm changing the Citizens to Indepandant Saboteurs and giving them a negative rating so the PMC's attack the Saboteurs, and make the PMC's friendly to the Civilian Police.

Share this post


Link to post
Share on other sites

You can try to give the Police officers like o1, 02 and so on then open your mission.sqm in notepad (preferably notepad++) and search the officers one by one by the name you gave them. Then set their side to GUER instead of CIV or West.

Here's a visual of what to look for: (side = GUER)

		class Item40
	{
		side="GUER";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={6317.8628,13.873505,7339.6021};
				azimut=240;
				id=71;
				side="GUER";
				vehicle="Soldier_GL_M16A2_PMC";
				leader=1;
				rank="CORPORAL";
				skill=0.2;
			};
		};
	};

Notice though that in my example it doesn't include a name that the unit was named, because I didn't name it. But I believe if you name the unit the name will appear, but I could be wrong, if anything just look for the class-name like "Soldier_GL_M16A2_PMC"; as shown above. I hope this helps. :)

Edited by JSF 82nd Reaper

Share this post


Link to post
Share on other sites

I didn't know you could do this. Thank you.

Edited by eagledude4

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  

×