OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Whitmire on 12 May 2004, 14:10:45

Title: Civilian combatants.
Post by: Whitmire 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.
Title: Re:Civilian combatants.
Post by: Wadmann 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.
Title: Re:Civilian combatants.
Post by: Dubieman on 12 May 2004, 20:06:22
Another way is to make the west guy and put

deletevehicle this         in the init field.

Title: Re:Civilian combatants.
Post by: Loup-Garou 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
Title: Re:Civilian combatants.
Post by: Whitmire 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. :-\