OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ace on 24 Dec 2002, 17:38:28

Title: Flares Anyone?
Post by: Ace on 24 Dec 2002, 17:38:28
Quick and probaly simple question;

How do you make an AI unit fire a Flare high into the sky?

Any answers welcome,
Ace
Title: Re:Flares Anyone?
Post by: Kaliyuga on 24 Dec 2002, 22:51:03
Quick and simple answer....

use camcreate instead ;)

Title: Re:Flares Anyone?
Post by: O Neil on 25 Dec 2002, 09:16:25
Quick and smiple answer, no.

Unitname fire ["M203Muzzle","flare", "flare"] ;)
Title: Re:Flares Anyone?
Post by: GCGoquingco on 26 Dec 2002, 03:34:31
How do you do that with nam pack 2?
the officers use flare guns. I hope someone can help me in my mission.   :(
(thanks  ;)
Title: Re:Flares Anyone?
Post by: Ace on 27 Dec 2002, 21:05:33
Thnaks O'Neill it really Helped.

As for you Lt. Spears the best thig you could do is ask Selectthis or one of the oher creators of the NAM pack.

Alternitavely you could experiment with some of the names when trying to do this command.

Example :

OfficerFlare fire ["Flaregun","flare", "flare"] or sumthin like tht
Title: Re:Flares Anyone?
Post by: O Neil on 28 Dec 2002, 00:56:44
Quick and simple question, no.........jks. ;)

What's the difference in putting flare 1nce, and putting flare 2wce?

O Neil

PS: Just curious. ;)

Title: Re:Flares Anyone?
Post by: rchxenson on 28 Dec 2002, 01:41:48
one of the flare is for color, I forget which but just fool with it and you will find out....
Title: Re:Flares Anyone?
Post by: Messiah on 28 Dec 2002, 02:04:11
as for cam create - when i try and do it - the flares arent a light - if i then exchange what i wrote with a smoke shell it works fine - any1 know why when i cam create a red flare, nothing happens?
Title: Re:Flares Anyone?
Post by: rchxenson on 28 Dec 2002, 02:21:24
you have to set the flares at an altituted so that they work....
use the XYZ set pos guidelines.
Title: Re:Flares Anyone?
Post by: SharkDog on 28 Dec 2002, 17:05:37
So how do i add flares to a unit?
Title: Re:Flares Anyone?
Post by: Ace on 28 Dec 2002, 19:26:41
First if you want to add a weapon or Magazine you have to remove one (unless the unit has an empty ammo or weapon slot) You can do this by typing in the Init Field of the deired unit
this removemagazine "handgrenade" or any other magazine that is there

Now you add the flare

this addmagazine "flare"

Other possible flare values are flareyellow or flarered. Check the Unofficial Command Referance for a list of weapons and ammo names.

Title: Re:Flares Anyone?
Post by: Seeker on 28 Dec 2002, 20:06:52
could someone explain me this camcreate thing?
it seems to be more simple than working with a unit shooting a flare, but i'm not very experienced with this command.
Title: Re:Flares Anyone?
Post by: O Neil on 29 Dec 2002, 04:05:12
Hey

Call you unit    'dude'    
then, in a trigger, type the following:

flare1="flare" camcreate[getpos dude select 0, getpos dude select 1,50]

That will create a flare up in the sky. NOw, if you want a bomb, replace      "flare"    with one of the following:

heat73
heat105                          
heat125
shell125                      
shell120

O Neil ;)

PS: What else can you put there ?
Title: Re:Flares Anyone?
Post by: Messiah on 29 Dec 2002, 13:49:47
'bomb' as a matter of fact  ;)
Title: Re:Flares Anyone?
Post by: Seeker on 29 Dec 2002, 14:06:24
Hey

Call you unit    'dude'    
then, in a trigger, type the following:

flare1="flare" camcreate[getpos dude select 0, getpos dude select 1,50]

That will create a flare up in the sky. NOw, if you want a bomb, replace      "flare"    with one of the following:

heat73
heat105                          
heat125
shell125                      
shell120

O Neil ;)

PS: What else can you put there ?



and this will create a flare over "dude's" position? ???
Title: Re:Flares Anyone?
Post by: Messiah on 29 Dec 2002, 14:13:09
the flare will be camcreated over the unit named 'dude'
Title: Re:Flares Anyone?
Post by: Seeker on 29 Dec 2002, 17:02:43
Nice!
in which height?
Title: Re:Flares Anyone?
Post by: O Neil on 30 Dec 2002, 08:56:51
Yes.....why, something wrong?
Title: Re:Flares Anyone?
Post by: Seeker on 30 Dec 2002, 15:03:03
Yes.....why, something wrong?

what do you mean?
Title: Re:Flares Anyone?
Post by: Davies1 on 30 Dec 2002, 15:58:27
i use a trigger and activation should be whoever you want.size should be whatever

on activation:

Flare = "Flare" camcreate (getpos this select 0, getpos this select 1, getpos this select 2,x)

x being the height you want it.

sometimes this dont work so substitute the 'this' for a name and make a barrel or invisible h and name it to this name and place it where you want the flare to go off.

Flare can be changed to
FlareRed
FlareGreen
and summat else but i isnt sure....;)
Title: Re:Flares Anyone?
Post by: O Neil on 01 Jan 2003, 02:35:13
Oh! Sorry, I was reading page 1  ;)
Title: Re:Flares Anyone?
Post by: Davies1 on 01 Jan 2003, 12:46:08
loooooool  ;D
class!
Title: Re:Flares Anyone?
Post by: O Neil on 02 Jan 2003, 00:55:45
 ;)
Title: Re:Flares Anyone?
Post by: monoloth69 on 10 Jan 2003, 16:45:58
i have a question regarding:i use a trigger and activation should be whoever you want.size should be whatever

on activation:

Flare = "Flare" camcreate (getpos this select 0, getpos this select 1, getpos this select 2,x)

x being the height you want it.

sometimes this dont work so substitute the 'this' for a name and make a barrel or invisible h and name it to this name and place it where you want the flare to go off.

Flare can be changed to
FlareRed
FlareGreen
and summat else but i isnt sure....;)

I am new to map making/editing blah blah blah, so excuse my ignorance plz.  When i used this in the activation field of a trigger, i sert it to activation by anyone, and repeatedly.  First it said i was missing a (, so i changed it to look like this

Flare = "Flare" camcreate [getpos this select 0, getpos this select 1, getpos this select 2,75]

now i get an error saying

Flare = "Flare" camcreate [getpos this select 0, getpos this select 1, getpos this select 2,75] /#/: 4 elements provided, 3 expected

i am just using player in editor to try and trigger the flares to go off, and when i enter the trigger area, this is what happens, just the error message.  I am working on a map in La Trnag Valley where i will need multiple flares to go off when the enemy enters the area, but so far this is my main sticking point, plz help me out fellas, sorry for being such a n00b :help: