Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Civilian combatants.  (Read 1389 times)

0 Members and 1 Guest are viewing this topic.

Whitmire

  • Guest
Civilian combatants.
« on: 12 May 2004, 14:10:45 »
First post - no flames. ;)

I want to make a mission similar to the one (Choice, was it?) in OFP: Resistance, where the protagonist had to make a choice between fighting for the Resistance, becoming an informer and trying to remain out of the action.

I want to make the player Civilian an enemy of the East side.

The problem is that as Civilians are neutral to all sides, the Russians won't fire at the player apart from "forced" fire (dotarget and fire). How can I change this and make my mission actually playable?

There is no need for an actual switch of sides during the mission, it is enough if I can make it so that the Russians recognize the character as an enemy from the start.

Offline Wadmann

  • OFPEC Patron
  • ****
  • I'm the next evolutionary step after a llama!
Re:Civilian combatants.
« Reply #1 on: 12 May 2004, 17:02:29 »
Greetings Whitmire!

All that you need to do is add an East unit in the editor that outranks your civilian unit, set "Probability of Presense" to "0", and then press F2 and drag a line to group the East unit to the civilian! 8) You now have a civilian that can be killed by West (or Resistance) units. You could also put "this setcaptive true" in his init field and at some point in the mission change him to "this setcaptive false" by way of a trigger or waypoint so he is neutral until you want him to go over to the East side.


                                                                              Wadmann

Edit: I misread your post! :-[ Change the East unit to a West unit to get the East to target your civilian.
« Last Edit: 12 May 2004, 17:09:24 by Wadmann »
Check out my Camouflage Collection! New items added 31 July 2005.

Dubieman

  • Guest
Re:Civilian combatants.
« Reply #2 on: 12 May 2004, 20:06:22 »
Another way is to make the west guy and put

deletevehicle this         in the init field.


Loup-Garou

  • Guest
Re:Civilian combatants.
« Reply #3 on: 13 May 2004, 10:42:52 »
NOTE : the east unit (Initialization : deleteVehicle this) linked (F2) to the civilian must have a higher rank (if the civilian is private, the east soldier must be at least corporal).

Your problem is very common and as been answered a million times, so don't hesitate to use the "search" function. And don't forget to solve your topic (click on green tick).  ;)

And, as Macguba says, WELCOME TO THE FORUM !  :D

Whitmire

  • Guest
Re:Civilian combatants.
« Reply #4 on: 13 May 2004, 11:43:01 »
Ah, that's ingenious! Many thanks to you all!

I tried the FAQ but for some reason it always came up blank. I'm sure that in this case the fault is between the helmet and the chin strap rather than in the software, but I just couldn't get it working.

I did do a manual search by flipping through the first dozen or so pages, though, if that helps. :-\