OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: The-Architect on 03 Feb 2004, 13:07:01

Title: Resistance fire flare
Post by: The-Architect on 03 Feb 2004, 13:07:01
Hi,
How do i get a guy to fire a flare when he reaches a trigger?
Or, how do camcreate one when my non-player guy hits the trigger.

I've had real trouble getting the fools to do as they are told so I'm gonna need the addweapon command, the addammo command and the trigger details.
I trust your brains can handle this one as always.
Cheers.
Title: Re:Resistance fire flare
Post by: macguba on 03 Feb 2004, 14:11:52
loon1 fire "flarered"

Or whatever.  Check the syntax and make sure he has a flare of the requisite type.

Or something like

flare1 = "flaregreen" camcreate [getpos GL1 select 0, getpos GL1 select 1, 60]

These lines go in the on activation field of  a trigger, fired as you like.     Group the trigger to the group leader for new options in the Activation box.    Or make it west present and have

Condition:  loon1 in thislist
Title: Re:Resistance fire flare
Post by: The-Architect on 05 Feb 2004, 19:26:18
Is the camcreate command going to magically make a flare appear high in the sky as if nobody fired it up there? 'Cos that's what i need. I wiil try it when I get the time.
Title: Re:Resistance fire flare
Post by: macguba on 05 Feb 2004, 19:32:11
The flare will appear whereever you tell it to.   It  might not work close to the ground.