OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Conflict109 on 07 Aug 2004, 22:42:45

Title: how do i......
Post by: Conflict109 on 07 Aug 2004, 22:42:45
ok unfortunately when i  tried searching this idea its way too broad....

I need to execute a player- i have one man running from a crowd...all civvies- and one civy has a pistol the idea is that the mob runs up and overtakes the running guy, and they execute him....but here's the problem....

no matter what commands i use to add weapons to the civvies,target the running guy,or fire on him... they never seem to use their weapons....is this a civy problem? or is it just something im missing?

thanks
C109
Title: Re:how do i......
Post by: macguba on 07 Aug 2004, 23:30:12
I'm not sure I understand.   You want a civvy to shoot a civvy, right?

OK.   In the Intel box set Resitance friendly to West (say).    Create an East officer.   Group the victim to him, so that the officer is the group leader.     Make the probability of presence of the officer zero.    In the init field of the victime write

this setCaptive true

Name the victim victim1.

Now give the shooter a weapon.    When you want the shooter to shoot the victim have this code in a trigger, wayopint, whatever

victim1 setCaptive false

The shooter will think that the victim is an East soldier.   Since the Resistance is friendly to West (and therefore enemy to East) the shooter should shoot the victim.
Title: Re:how do i......
Post by: CopyrightPhilly on 08 Aug 2004, 00:12:28
first off read this

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=7159

the part to read is "When you post"

if you want a civ to kill a civ then:

Code: [Select]
civname1 dotarget civname2
civname1 dofire civname2

civname1 is the name of the armed man
civname2 is the name of the civ that gets shot

cheers, Philly
Title: Re:how do i......
Post by: Conflict109 on 08 Aug 2004, 23:14:43
philly my apologies for the title of my post-as im assuming that was the reason behind the "when you post" remark

i did attempt the the dotarget and dofire commands they didnt work... :-\

and im actually in the process of reinstalling right now, so i haven't had the chance to try the grouping technique...i had attempted to group the civvy to be killed to the west officer i "deletevehicle this" to, and same with the shooter only grouping him with an east officer...i haven't tried the resistance one tho...soooo we'll see how that goes


Thanks again

C109