Editors Depot

[OFPRes] Flare Aid by Raptorsaurus

Version 1.2
Added 15 Mar 2008
Downloads 756
Demo included Yes
Filesize 7.06KB
User rating Not yet rated

Makes flares launch higher, fall more slowly and burn longer.  If a flare is launched during the day, a smoke shell of equivalent color will supplement the flare (since flares do not show during the day).

Update: v1.2:

Now flares are suplemented with a day visible drop item and a smoke trail.

This script requires the function getAlt.sqf (included in the functions folder in the demo mission).

To use this in a mission:

1.    Put the flareAid.sqs script into the mission folder (or in a sub-folder within the mission folder).
2.    Put the getAlt.sqf function in the mission folder (or in a sub-folder within the mission folder).

3.    Put this line in a script, trigger on-activation field, or waypoint on-activation field:

unit AddEventHandler ["fired",{_this exec "flareAid.sqs"}]
is the name of the man who will have improved flares.

If put in the init field of a unit then you can use:
this AddEventHandler ["fired",{_this exec "flareAid.sqs"}]

To give enhanced flare launching to all the units of a group use:
{_x AddEventHandler ["fired",{_this exec "flareAid.sqs"}]} forEach units group mygroup
is the name of one of the units in the group.

If the flareAid.sqs script is in a sub-folder, then substitute "flareAid.sqs"with "scripts\flareAid.sqs" in the above examples. is the name of the sub-folder containing flareAid.sqs.

4.    Initialize the getAlt function by putting this line in you mission init.sqs file:

GetAlt = preprocessFile "GetAlt.sqf"

If the function is in sub-folder (in this case a folder named ) then:

GetAlt = preprocessFile "Functions\GetAlt.sqf"

 

There are further notes in the flareAid(commented).sqs.  If you want to use the getAlt.sqf function in other scripts, you can read further information on that function in the header of that function.

View the forum thread for this resource here.


Click to see 6 other resources by this author.


Search OFPEC Editors Depot

COMREF

The OFPEC Command Reference contains details of all scripting commands available to the editor.

Beginner's Tutorial

All you need to know about how to start editing.

Multiplayer Tutorial

This tutorial explains the mysteries of multiplayer editing.

OFPEC Tutorials

OFPEC hosts several quality tutorials written specifically for the site by staff and members...

OFPEC Tags

Register a tag, browse for addon keys...