IPB


Welcome Guest ( Log In | Register )

 Forum Rules ArmedAssault.info Forum Rules
 
Reply to this topicStart new topic
> East Friendly To West?
el_duderino
post Dec 24 2010, 02:42
Post #1


Junior Member
**

Group: Members
Posts: 15
Joined: 20-November 10
From: U.S.A.
Member No.: 8,536



Im trying to create a mission with U.S. and Russian forces working together aginst Independant Factions and was curious if there is a script or anything that can be used to make them friendly? I tried using the set captive but the OPFOR still shoots the west units. Ive tried reserching this on my own and as im not very good at modding i hope the ARMA community can offer me more help than what ive found on the net. Also if any one can give me a link to all the availible voices and faces for use in ARMA2:CO's description.ext that would be great.
 
Quote Post
D@V£
post Dec 24 2010, 12:42
Post #2


Gee, I wish we had one of them doomsday machines.
Group Icon

Group: Moderators
Posts: 2,037
Joined: 13-November 06
From: Wales
Member No.: 155



You can use the setfriend command to change "friendliness" between the four sides.

Simple syntax:
CODE
Side1 setfriend [Side2,X]

Where X is any value between 0 and 1. With 0 being the worst of enemies and 1 being the best of friends. Bear in mind this makes Side1 view Side2 as friends, you need to run a similar command for Side2!

The best place to stick this is in your init.sqs file (if you haven't made one yet, create a file called "init.sqs" in your mission's folder, a script with this name will automatically be run at the beginning of the mission)

So, if you want BLUFOR and OPFOR to be friendly to each other, and hostile to Independents, use this:
CODE
West setfriend [East,1];
West setfriend [Resistance,0];
East setfriend [West,1];
East setfriend [Resistance,0];


Note that these use the OFP side names, so BLUFOR=West, OPFOR=East and Independent=Resistance.

(It's recommended you don't make West, East or Resistance hostile to civilians or sideLogic! It can result in some... unusual AI behaviour... the best example I've heard to is soldiers trying to defend themselves against trees! ohnoo.gif )

You can find a list of ArmA.2's faces here, I don't know if there's a similar page for OA's faces...


--------------------
The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you hate me love me secretly fear that Mark is watching you while you sleep. secretly wish that Mark is watching you while you sleep.
Site Issues Thread - Complain about site issues here. We might even fix them!
Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly".

QUOTE(Major Mike Shearer)
We can categorically state that we have not released man-eating badgers into the area.
QUOTE(Brace Belden)
A machine gun is like a woman, I don’t understand it, I’m afraid of it, and one day I’ll accidentally be killed by one.
 
Quote Post

Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 25th April 2024 - 15:10