OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
Quick and simple answer....
use camcreate instead ;)
-
Quick and smiple answer, no.
Unitname fire ["M203Muzzle","flare", "flare"] ;)
-
How do you do that with nam pack 2?
the officers use flare guns. I hope someone can help me in my mission. :(
(thanks ;)
-
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
-
Quick and simple question, no.........jks. ;)
What's the difference in putting flare 1nce, and putting flare 2wce?
O Neil
PS: Just curious. ;)
-
one of the flare is for color, I forget which but just fool with it and you will find out....
-
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?
-
you have to set the flares at an altituted so that they work....
use the XYZ set pos guidelines.
-
So how do i add flares to a unit?
-
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.
-
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.
-
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 ?
-
'bomb' as a matter of fact ;)
-
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? ???
-
the flare will be camcreated over the unit named 'dude'
-
Nice!
in which height?
-
Yes.....why, something wrong?
-
Yes.....why, something wrong?
what do you mean?
-
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....;)
-
Oh! Sorry, I was reading page 1 ;)
-
loooooool ;D
class!
-
;)
-
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: