OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
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"];
-
ok thanks, ill give it a try
-
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?
-
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?
-
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 ;)
-
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.
-
Welcome to the forums, bumms :)