OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: raggy99 on 04 May 2003, 05:27:29

Title: Condition of Presence
Post by: raggy99 on 04 May 2003, 05:27:29
I want to make it so that when i kill a person named "Jim" (Jim is on the East's) that "Peter" (West) apears
Can any one please tell me how to do this.
Thank you in advance

Raggy99
Title: Re:Condition of Presence
Post by: macguba on 04 May 2003, 10:29:36
You need a trigger:-

Condition:    not (alive Jim)
On activation:   "SoldierWB" createUnit [getMarkerPos "barracks", grp1, "this addweapon binocular; Peter = this", 0.75, corporal]

Look up creatunit in the command ref to understand what all the bits mean.  

Oh, and

Welcome to the forum!