OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bumms on 08 Sep 2002, 18:00:24

Title: Getting enemy to fire flares
Post by: bumms on 08 Sep 2002, 18:00:24
how do i give the enemy and my team flares , and them get them to fire them at a specific point?
Title: Re:Getting enemy to fire flares
Post by: Black_Feather on 08 Sep 2002, 19:57:38
you have to add them with

unitname addmagazine "Flare"

and they will have to have grenade launchers too

unitname addweapon "AK74GrenadeLauncher"
unitname addweapon "M16GrenadeLauncher"

then in your waypoint or triggers on activation field put this,

unitname fire ["GrenadesMuzzle","flare", "flare"];

or for the west

unitnam fire ["M203Muzzle","flare", "flare"];
Title: Re:Getting enemy to fire flares
Post by: bumms on 08 Sep 2002, 20:14:57
ok thanks, ill give it a try
Title: Re:Getting enemy to fire flares
Post by: bumms on 09 Sep 2002, 13:14:19
right,

ive given the men flares and grenadelaunchers, and

i can get the West to fire a flare from a radio signal, but cant get the East to fire when they get to a certain waypoint.

ive entered the code to fire in the On Activation field, but they dont fire, just pause.

?????

can you help?
Title: Re:Getting enemy to fire flares
Post by: bumms on 09 Sep 2002, 13:16:41
right,

ive given the men flares and grenadelaunchers, and

i can get the West to fire a flare from a radio signal, but cant get the East to fire when they get to a certain waypoint.

ive entered the code to fire in the On Activation field,


unitname fire ["GrenadesMuzzle","flare", "flare"];


 but they dont fire, just pause.


can you help?
Title: Re:Getting enemy to fire flares
Post by: zsa_zsa_rasputin on 17 Sep 2002, 16:17:36
Hey Kier.
Try giving them a CommandFire command :)

ie.
unitname CommandFire ["GrenadesMuzzle","flare", "flare"];

Haven't tried it myself - will when I get back
(if it works Can you stick this missy on that disk I lent ya?)

ALMOST COMPLETED that mission I was telling you about too
(Just some intro problems)

Dan  ;D

ps. Check out the "Mission ideas" part of the forum and look at the "Everon Cartel" thread  ;)
Title: Re:Getting enemy to fire flares
Post by: macguba on 17 Sep 2002, 18:38:08
Yet another answer (you can't say you don't get value for money at this forum).   Put this in the dude's init field

this addmagazine "flarered"; this addweapon "flarered"

(you must add the magazine before the weapon)

and in the activation field of the waypoint

echoflare fire "flarered"

This is copied and pasted from my mission (which is why the dude has a daft name like echoflare) and it works for me.   Obviously you can use flare, flaregreen or flareyellow instead.  He is an East dude so you should be ok.   It can be a little temperamental though, he has been know to wait a little before firing.

Black_Feather's solution should work though, dunno why it doesn't.  Could be one of those annoying little spelling or syntax things.

Title: Re:Getting enemy to fire flares
Post by: Sefe on 18 Sep 2002, 09:47:00
Welcome to the forums, bumms :)