OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Jeromez on 18 Feb 2003, 15:07:25

Title: AI fires flares
Post by: Jeromez on 18 Feb 2003, 15:07:25
Is it possible to make an AI fire a flare?

I have a MP DM map in total darkness.
And I want an "autoflare" every 5 or 10 min

Does anyone have a sollution for this?

thanks in advance  8)
Title: Re:AI fires flares
Post by: macguba on 18 Feb 2003, 15:24:14
You could camcreate flares.

Alternatively

loon1 fire "flarered"

or
flaregreen
flareyellow
flare

make sure he has a grenade launcher and the right ammo.  
Title: Re:AI fires flares
Post by: Jeromez on 18 Feb 2003, 15:56:17
will try, tnx a lot  8)
Title: Re:AI fires flares
Post by: Zayfod on 18 Feb 2003, 16:50:43
Here ya go :)

just download this map and merge it with the one you want, place the invisible "H" where u want him to fire the flares --thats all. done.

Be sure to copy and paste the flare.sqs into your new map mission folder.

The AI will fire a flare at the H randomly between 5 and 10 mins apart --the flares will be a random colour.
Title: Re:AI fires flares
Post by: GomerPyle on 19 Feb 2003, 02:11:05
Or you can use the ImprovedAI script. Very good script.....
Title: Re:AI fires flares
Post by: Zayfod on 19 Feb 2003, 02:30:06
Actually thats where I got the snippet from :)

I have just modified it to suit his needs , yes Bremmers improved AI script is brilliant ;D
Title: Re:AI fires flares
Post by: O Neil on 19 Feb 2003, 06:39:16
aCarrier fire ["M203Muzzle","flare", "flare"]