OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: CyDoN on 31 Mar 2008, 09:22:40

Title: Traitors
Post by: CyDoN on 31 Mar 2008, 09:22:40
I want help with something, i am now studying the scritpts and things like that but i have some problems and cant fully understand whats happening. i want now to have some "traitors" some blufor models to fight on the opfor side as friends with the opfor. how can i do that?


Thanx again for ur understanding.  :good:
Title: Re: Traitors
Post by: Cheetah on 31 Mar 2008, 09:49:12
Hey CyDon, welcome to ofpec

haven't seen you around before although you've made a few posts :).

You might want to check the Beginner's Tutorial (http://www.ofpec.com/ed_depot/beginners/groups.php) > Chapter 4: Groups.
At the bottom of the page there are a few paragraphs about adding a 'spy', that's probably what you're looking for.
Title: Re: Traitors
Post by: CyDoN on 01 Apr 2008, 16:31:43
thx lad much appriciated! Thank you very much, but how about individual units or if i want to spawn a west soldier as east?

again thank you for your time. Would this work on multiplayer?
Title: Re: Traitors
Post by: Nexolate on 01 Apr 2008, 16:40:28
Say Cheetah, you wouldn't also happen to know how to make a unit enemies of everyone, would you?
Title: Re: Traitors
Post by: Cheetah on 01 Apr 2008, 17:11:25
Uhm. You can do so by adjusting their rating and thereby making them a 'rebel'.

For example:

Code: [Select]
player addRating -10000
Title: Re: Traitors
Post by: Nexolate on 01 Apr 2008, 17:59:17
Alright, cheers. Thinking of making a Coop Mission based around a couple of Mercenaries.
Title: Re: Traitors
Post by: Cheetah on 01 Apr 2008, 18:03:35
Idea sounds good. Should work for the enemy, they will start shooting on the human players. But the rebel state due to a rating of -10.000 can also result in the loss of a group structure. So whereas you start out in a team of six players, once they are considered rebels by the Armed Assault engine - the team structure is lost and no-one is in the group anymore.