OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: mgkaplan on 22 Mar 2003, 08:37:28

Title: Treating a civilian as Resistance
Post by: mgkaplan on 22 Mar 2003, 08:37:28
I don't know if this is possible, but I would like a civilian to be aligned with the Resistance side. I know you can do it by adding him to a Resistance group, but I want him to be on his own. I also tried adding him to the group, and setting a kill command for the leader, but it keeps on sending radio messages until the dead body is found, and having a dead resistance soldier lying dead out in the wilderness seems a little messy. If there is a way to turn off radio signals, so that the player does not hear them, that would suffice as well. Thanks for you time.


Title: Re:Treating a civilian as Resistance
Post by: Cap on 22 Mar 2003, 08:49:48
would it work if you used the setcaptive command put in civilians init

this setcaptive true

try that hope it helps
Title: Re:Treating a civilian as Resistance
Post by: mgkaplan on 22 Mar 2003, 09:17:09
Unfourtantly all that does is make it so the civilian is not shot at. It does not align it to the resistance side. Thanks for the help though.
Title: Re:Treating a civilian as Resistance
Post by: BaKaRa on 22 Mar 2003, 09:22:21
Try something like this:
?side civilname == resistance : civilname join ResistanceGroup
I think that should work
Title: Re:Treating a civilian as Resistance
Post by: mgkaplan on 22 Mar 2003, 09:32:52
Unfourtatnly that one didn't work. It said I got an invalid number. Maybe I did something wrong though. Thanks for the help anyway.
Title: Re:Treating a civilian as Resistance
Post by: macguba on 22 Mar 2003, 12:12:13
You can deleteVehicle the body.   EnableRadio false/true might come in handy too.

Check the commands in the command ref.

Alternatively, you can edit the mission.sqm file by hand.    Search the FAQ/forum for advice on how to do this.
Title: Re:Treating a civilian as Resistance
Post by: upriseimaging on 03 Apr 2003, 18:07:26
I know jack about editing but I do this by grouping a civilian to a resistance member (with a higher rank) and set his 'probability of presence' to 0.

Don't know if this is any help?
Title: Re:Treating a civilian as Resistance
Post by: dmakatra on 03 Apr 2003, 20:45:14
HACK THE MISSION FILE! MWUHAHAHAHAHAHAAAHAHAHAHAHA!!! :gunman:.

HACK, HACK, HACK!!!!! MWUHAHAHAHAHAHAHAHAHAHA!!!



Damn! Wrong, MWUHAHAHAHAHAHA, Mush, HACK, rooms again! :-\

HACK!!!
Title: Re:Treating a civilian as Resistance
Post by: macguba on 03 Apr 2003, 21:39:45
Thank you Armsty, your straightjacket is in the post.  ::)

He is quite right of course, like all the best lunatics.  You can hack the mission.sqm.     Search the forums for details.
Title: Re:Treating a civilian as Resistance
Post by: Wadmann on 03 Apr 2003, 23:36:21
I think that you can open the mission.sqm and find the unit in question. Side should equal "Civ" or something like that. Replace "Civ" with "Guer" (or whatever is in the side field for the your resistance unit) and save the mission.sqm. If I remember correctly, you must NOT click on the civ unit while in the mission editor or he will revert back to the Civ side. Hope this helps although I have not tried it myself.