OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gruntage on 03 Apr 2010, 17:19:56

Title: Attach flare
Post by: Gruntage on 03 Apr 2010, 17:19:56
Hey guys

Does any1 know how to attach a flare to the wall of a building? Ive searched several times and found a few scripts but the flare that's camcreated burns out after 15 seconds.

Any ideas would be appreciated  :)

Gruntage
Title: Re: Attach flare
Post by: Krieg on 03 Apr 2010, 19:11:53
All flares burn out in designated time. Only way to "prevent" this is to modify the script you are using so it loops every time flare burns out (i.e. add time delay and loop to the script).
Code: [Select]
#loop
commands
~15
goto "loop"

Alternately you can replicate the flare effect using drop command (http://www.ofpec.com/COMREF/index.php?action=details&id=117&game=All), because from my understanding BIS created the flare effect in similar fashion.

Hope that helps,
Krieg
Title: Re: Attach flare
Post by: Raptorsaurus on 24 Apr 2010, 21:25:33
The drop command would work, but it does not emit light (it glows unto itself but will not light other objects). There are some camCreateable light sources that you can place along with the drop command.