OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 22jacket on 01 Apr 2005, 02:17:49
-
Hi,
is there a script so I can put up illumination in game..ie troops wandering across field..hit tripwire sends illumination into the sky....or artillery sending illumination innthe air when requested..
-
Hi 22
All you need to do is create a trigger with activation = Any Present, Once. In the Activation field simpy put in "flare" camCreate [getpos this select 0, getpos this select 1, 150]. I'm not exactly sure of the "this" bit, but that should do it - as soon as anyone enters the trigger zone a white flare will be immediately camcreated 150m over their heads.
Good luck with it.
roni
-
mapfact created some flare traps, i forget which pack of theirs its in, all I know is I got it somehow one time, some place, one day, somewhere, out there
-
Maybe trining these?
put an Heliport(invisible) whereever you want to send the flare, and name it something... like "flare1"
now crate a trigger like Roni says, but add these in the On Activation line
"flare" camCreate [getpos flare1 select 0, getpos flare1 select 1, 150]
it only change that you select where the flare will be sendt when the trigger is activated.. it camcreats it over the Invisble H...
but you also can try to "inflame" some others lights... adding (objetID) inflme true, previusly setting that object inflame false...
Flauta
-
Well said Flauta - nice touch.
Of course to REALLY add to the effect you should have the trigger run a small script. In the script you add a custom "flare launch" sound effect and have the flare start at around 1m height with an upward velocity of (say) 50. Acording to my dubious maths this should see the flare jump up to around 130m before beginning it's descent.
Note that you can't have the flare start at 0m because as soon as it touches the ground it will go out :'(
roni
-
Im not sure if invisible helipads set off the flare, you might want to test that.
I actually use game logics myself. If you want to use a GL, just replace the invisible helipads with GLs.
But you can use either. ;)
-
Hello,
I'm trying to create some illumination either when the enemy is detected at a certain area, or when flares are called in via radio.
I tried "flare" camCreate [getpos flare1 select 0, getpos flare select 1, 150], but when I put it in the activation line, I get "Error type object, expected nothing."
Any help offered would be appreciated.
-
Your code has a typo. Is the gamelogic or whatever it is called flare or flare1?
-
I just fixed it - I added flare1 = before the code so now it is
flare1 = "flare" camCreate [getpos marker1 select 0, getpos marker1 select 1, 150]
where marker1 is the game logic, and now it works fine. Thank you for replying anyway :)