Home   Help Search Login Register  

Author Topic: Changing player's side  (Read 2321 times)

0 Members and 1 Guest are viewing this topic.

Offline crisbal

  • Members
  • *
Changing player's side
« on: 02 Aug 2011, 14:15:37 »
Example: My team is made of 5 member from resistance side. I want to attack a base wich is controlled by many members of the resistance side too. But when I shoot the guards in the base, the others members of my own team begin to shooting at me, obviously. So I want to change the side of my team of 5 members at one point. What do I have to do?  ???

Offline Aldo15

  • OFP-addict
  • Former Staff
  • ****
    • My OFP missions
Re: Changing player's side
« Reply #1 on: 02 Aug 2011, 20:30:05 »
In the mission editor add a russian unit but with presence 0% and then join him with your resistance units, using (F2) to join them...

I hope it helps
My OFP stuff
FMF Project by Aldo15. Coming soon.
If in the high school or university, Teachers add a new subject about how to make scripts, missions, for ofp. I'd be number one of my classroom

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Re: Changing player's side
« Reply #2 on: 03 Aug 2011, 02:09:00 »
Both sides are resistance? Well, if the enemy is resistance, you can click on the cloud top right corner of the editor and click "resistance friendly to nobody". If you change your side to west.
Who's hyped for Arma4, long live Arma!

Offline j0e

  • Members
  • *
    • j0e's home
Re: Changing player's side
« Reply #3 on: 03 Aug 2011, 11:59:07 »
As Aldo15 said, if you want a group of soldier to be in a different side instead of the one by-design, you have to give it a leader that is in the side you want fight against.

In your case, first, be sure that resistance has an enemies-side (do you know it can be friendly both west and east?).
So give the group a leader of the enemy side.
If you don't want the leader to be in-game, set its presence to 0%.

There is another way too, but I would suggest you the above one: easier and faster.

Offline robertoHrvat

  • Members
  • *
    • Area 51 modification
Re: Changing player's side
« Reply #4 on: 03 Aug 2011, 14:41:11 »
Men, fuck presence and it shits. Save your mission then open it: \C:\Program Files\Codemasters\Bohemia Interactive\Operation Flashpoint\Users\ExampleName\Missions\MissionExample.Noe\mission.sqm (open with text editor -notepad) and then find unit you want to attack you and when you found it only change side: GUER change in EAST ...

Example:
WHEN YOU OPEN MISSION.SQM YOU HAVE A THIS:

version=11;
class Mission
{
   randomSeed=6661123;
   class Intel
   {
   };
};
class Intro
{
   randomSeed=7535107;
   class Intel
   {
   };
   class Groups
   {
      items=1;
      class Item0
      {
         side="GUER";
         class Vehicles
         {
            items=1;
            class Item0
            {
               position[]={6585.455566,112.833923,4898.972656};
               id=0;
               side="GUER";
               vehicle="SoldierGB";
               player="PLAYER COMMANDER";
               leader=1;
               skill=0.600000;
               text="player";
            };
         };
      };
   };
};
class OutroWin
{
   randomSeed=11906051;
   class Intel
   {
   };
};
class OutroLoose
{
   randomSeed=1142787;
   class Intel
   {
   };
};

NOW RENAME GUER IN EAST IF YOU WANT TO GUERILLA SOLDIER ATTACKING GUERILLAS:

version=11;
class Mission
{
   randomSeed=6661123;
   class Intel
   {
   };
};
class Intro
{
   randomSeed=7535107;
   class Intel
   {
   };
   class Groups
   {
      items=1;
      class Item0
      {
         side="EAST";
         class Vehicles
         {
            items=1;
            class Item0
            {
               position[]={6585.455566,112.833923,4898.972656};
               id=0;
               side="EAST";
               vehicle="SoldierGB"; (Do not change GB in EB, SoldierGB is code for resistance soldier)
               player="PLAYER COMMANDER";
               leader=1;
               skill=0.600000;
               text="player";
            };
         };
      };
   };
};
class OutroWin
{
   randomSeed=11906051;
   class Intel
   {
   };
};
class OutroLoose
{
   randomSeed=1142787;
   class Intel
   {
   };
};

Enjoy!
« Last Edit: 03 Aug 2011, 14:43:28 by robertoHrvat »
RobertoHrvat

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Changing player's side
« Reply #5 on: 03 Aug 2011, 16:38:28 »
"precense and it shits" is much easier and faster than the completely unnecessary mission.sqm editing.
But I guess if you like to make things more complicated and harder, all the power to you.

And I'd suggest you watch your attitude a bit, starting your post with needless profanities doesn't actually validate your argument, quite the opposite.
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline robertoHrvat

  • Members
  • *
    • Area 51 modification
Re: Changing player's side
« Reply #6 on: 03 Aug 2011, 18:23:21 »
Okay,okay im sorry for telling "shits and ir"  :whistle: But this is more proffessionaly than presence,grouping with deletevehicle this; ..... (...) And this isnt so hard for do! ;)
RobertoHrvat

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Changing player's side
« Reply #7 on: 03 Aug 2011, 19:19:44 »
Quote
But this is more proffessionaly than presence
You mean that doing it more complex is more professional?
Or somehow it's more professional to muck about inside a structured code?

Professionals make things fast and effectively, not complex. ;)


There's nothing wrong with the method you suggest but to quote j0e from above, the presence stuff is easier and faster.
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline robertoHrvat

  • Members
  • *
    • Area 51 modification
Re: Changing player's side
« Reply #8 on: 03 Aug 2011, 19:39:59 »
Proffessionals are guys who can make and more complicated things, this is so easy (groups,presence) ... And for me it's not funny making mission like that! But K if somebody want make it easyer or sometimes for them coding uses a lot of time ... blah!blah!blah!  :whistle:

P.S. If somebody want work mission with grouping units, no problems with me and I was only said what I know with coding ... :)

cyaa
RobertoHrvat

Offline crisbal

  • Members
  • *
Re: Changing player's side
« Reply #9 on: 05 Aug 2011, 13:41:58 »
What's going on mens? Take it easy.  I appreciate every comment and both answers are good for my. You both resolve my dudes in such a differents ways. Thanks a lot !! I know that for some people this is not just only a videogame... it is much more...