OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: zenman1 on 25 Jun 2005, 04:42:00

Title: How to make AI assassinate
Post by: zenman1 on 25 Jun 2005, 04:42:00
How can I get a sniper to wait for someone to get out of a chopper.
and after the man gets out and salutes the AI sniper will shoot him?

Hope this wasnt a stupid question.
Title: Re:How to make AI assassinate
Post by: Peter_Bullet on 25 Jun 2005, 05:14:43
like this:
;in a script or a trigger

;condition field
@!(man in helicopter)
~1
;activation field
man playMove "IDON'T KNOW WHAT SALUTE IS"
~2
sniper doFire man

if you put this in a trigger you put the activation:
man playMove "IDON'T KNOW WHAT SALUTE IS"; sniper doFire man

Though you are going to have to make A LOT of work to make this thing work, like placing the sniper in the right position and so on...  ;)
Title: Re:How to make AI assassinate
Post by: zenman1 on 25 Jun 2005, 06:15:11
thanks this does work!