Einzelnen Beitrag anzeigen
Alt 16.10.2013, 17:08   #764 (permalink)
Xeno
10 Jahre hx3
5000 Beiträge
 
Benutzerbild von Xeno
 
Registriert seit: 03.01.2008
Alter: 84
Beiträge: 6.552
Standard

The function files (fn_something.sqf) are all precompiled before any inits run via the CfgFunctions thingie in Alpha3 (precompiled means, you can use those functions already in the init lines of editor placed units and init.sqf, etc). They are compiled to global functions/variables with the name convention d_fnc_something (revive is xr_fnc_something). Check CfgFunctions.hpp how this is done (must be included into description.ext for missions).

Inside normal scripts the macro FUNC(something) expands the parameter to d_fnc_something while in FSM files you would have to include the macro file in every state and every condition so it's easier to just use d_fnc_something.

Currently you can't edit the FSM files with the FSM editor because I strip all relevant editor information from them (automatically). Once 2.99 is finished they will be part of the download again.

One more thing, all Domina functions are compiled with compileFinal (because of CfgFunctions) which means they can't be changed by script kiddies during mission runtime anymore (it removes at least one security hole).

Xeno
__________________
In arma everything is made of refined explodium, armored with wet paper towels.

Geändert von Xeno (16.10.2013 um 17:11 Uhr).
Xeno ist offline