Home   Help Search Login Register  

Author Topic: Making east or west or rogue units target civilian units?  (Read 1638 times)

0 Members and 1 Guest are viewing this topic.

Offline izaktj

  • Members
  • *
My mission is almost done, however I noticed that east soldiers are not targeting policemen (civillian side) KEEPING the civillian side, not joining a west soldier, etc. Is there a way to do this?
If not via initializing or triggers, I guess I could edit the config file inside the PBO to make the unit west. But I don't know how to do that either.

BTW, the policemen DO target east soldiers. The policemen are on the civilian side.

Thanks for the help, much appreciated.  :D

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Making east or west or rogue units target civilian units?
« Reply #1 on: 17 Dec 2008, 13:53:59 »
You could try the addRating command, with a negative number. That would mean everyone would shoot at the policemen, but depending on who else is present at the time that may be enough to solve the problem.

Offline izaktj

  • Members
  • *
Re: Making east or west or rogue units target civilian units?
« Reply #2 on: 17 Dec 2008, 14:10:56 »
LMAO it didn't work, they started shooting at each other lol. But it was funny though.
« Last Edit: 17 Dec 2008, 16:49:46 by bedges »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: Making east or west or rogue units target civilian units?
« Reply #3 on: 17 Dec 2008, 14:33:54 »
Group the policeman with a high ranking (actually I am not sure the rank is relevant, but it might be) west soldier (west soldier to be the leader).  Set the West soldier's condition of presence to False so that he does not appear in the mission.  You will now have a policeman that is on the West side and so East soldiers will attack him.  If you don't want him to be attacked immediately setCaptive True would stop that, then setCaptive False when you want him to be attacked.  You may also need to set his behaviour to Careless to avoid him hitting the deck when east soldiers are close by.
« Last Edit: 17 Dec 2008, 14:38:04 by THobson »

Offline Gcfungus

  • Members
  • *
Re: Making east or west or rogue units target civilian units?
« Reply #4 on: 18 Dec 2008, 00:19:59 »
THobson has the solution there. You do need to make the west unit higher ranked than all the other units, so he will set the side.  :D
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline izaktj

  • Members
  • *
Re: Making east or west or rogue units target civilian units?
« Reply #5 on: 18 Dec 2008, 04:58:27 »
Thanks, but there is another problem. If he is the leader and set the condition of presence to false, the animation won't work.
Code: [Select]
{(vehicle _x) animate ["ani_siren", 1]} foreach units group this 
« Last Edit: 18 Dec 2008, 09:00:15 by bedges »

Offline zwobot

  • Members
  • *
Re: Making east or west or rogue units target civilian units?
« Reply #6 on: 18 Dec 2008, 07:29:03 »
Alternatively you can edit the side of the civilian units to east or resistance (if "resistance belongs to" is set to side east or nobody in the editor) in the mission.sqm file; you have to be aware though that you must not edit the unit again in the editor afterwards because this will change their side back to civilian or morph them into regular east or resistance soldiers.
"Executing tactics in real combat is the hardest thing one can ever do...well I've never given birth but..well whatever."

Offline izaktj

  • Members
  • *
Re: Making east or west or rogue units target civilian units?
« Reply #7 on: 18 Dec 2008, 08:46:47 »
That sounds fairly simple. What do you mean by "editing the unit"?
BTW, is there a link to a tutorial of this method?
« Last Edit: 18 Dec 2008, 09:00:25 by bedges »

Offline M!StAkE id11479

  • Members
  • *
Re: Making east or west or rogue units target civilian units?
« Reply #8 on: 20 Dec 2008, 01:08:58 »
Save your mission once you are sure you will never have to modify again the unit, then quit ofp and go in your hard drive in your ofp folder, go in "user" part and find your mission, then open the missions.sqm file with wordpad or any document prog, then find in the line of the right unit and erase his side part, write another side for replace it...
Save and launch ofp, open the editor, load the mission and save.
(be care: as said zwobot if you edit the unit again in the editor you will disable the effect and make the unit as originaly!)
« Last Edit: 20 Dec 2008, 01:15:49 by bedges »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: Making east or west or rogue units target civilian units?
« Reply #9 on: 21 Dec 2008, 18:20:43 »
Did you put:
Code: [Select]
{(vehicle _x) animate ["ani_siren", 1]} foreach units group thisIn the init field of the leader?  If so then because he does not exist in the mission the code will not be run.  Try putting it in the init field of a unit that will exist in the mission.

I believe the side of the group is set by the side of the leader, irrespective of his rank.  From memory I thought the rank only impacted how likely the units were to run away.