Functions - Superxpdude/tmtm_template GitHub Wiki
| B C D E F H I L M O R S U V |
|---|
| XPT_fnc_briefingCreate | |
|---|---|
| Creates a briefing (diary record) from an XPTBriefings class. | |
Parameters
|
Returns
|
Example["situation"] call XPT_fnc_briefingCreate;
| XPT_fnc_briefingOnStart | |
|---|---|
| Automatically creates briefings from XPTBriefings on mission start. | |
Parameters
|
Returns
|
ExampleCalled in postInit on mission start
| XPT_fnc_cbaParams | |
|---|---|
| Sets CBA mission settings based on lobby parameter values. | |
Parameters
|
Returns
|
ExampleCalled in postInit on mission start
| XPT_fnc_curatorAddUnit | |
|---|---|
| Adds an object as an editable unit for all curators (Zeus) in the mission. Automatically adds all crew members if used on a vehicle. | |
Parameters
|
Returns
|
Example[unit] call XPT_fnc_curatorAddUnit;
| XPT_fnc_curatorEH | |
|---|---|
| Adds event handlers to all curators upon mission start. | |
Parameters
|
Returns
|
ExampleCalled in postInit on mission start
| XPT_fnc_curatorGrpPlaced | |
|---|---|
| Adds all units within a curator placed group as editable units for all other curators. | |
Parameters
|
Returns
|
Example[curatorModule,group] call XPT_fnc_curatorGrpPlaced;
| XPT_fnc_curatorMenu | |
|---|---|
| Handles setting up the curator menu. | |
Parameters
|
Returns
|
ExampleAutomatically runs at mission start
| XPT_fnc_curatorObjPlaced | |
|---|---|
| Adds a curator placed object as an editable object for all other curators. | |
Parameters
|
Returns
|
Example[curatorModule,object] call XPT_fnc_curatorObjPlaced;
| XPT_fnc_curatorRemoveNVG | |
|---|---|
| Removes night-vision goggles from a unit, or from crew members of a vehicle. | |
Parameters
|
Returns
|
Example[unit] call XPT_fnc_curatorRemoveNVG;
| XPT_fnc_debugCuratorFix | |
|---|---|
| Fixes a black-screen bug that can sometimes occur with the zeus interface. Must be run on the server. | |
Parameters
|
Returns
|
Example[player,curatorModule] call XPT_fnc_debugCuratorFix;
| XPT_fnc_error | |
|---|---|
| Handles error reporting to the debug log, and systemChat (if specified). | |
Parameters
|
Returns
|
Example[false, "Function called without a variable", 0] call XPT_fnc_error;
| XPT_fnc_errorLog | |
|---|---|
Handles sending an error message to the rpt log and system chat. Please call XPT_fnc_error instead.
|
|
Parameters
|
Returns
|
Example[true,"Error message"] call XPT_fnc_errorLog;
| XPT_fnc_errorReport | |
|---|---|
Old function for handling errors. Replaced by XPT_fnc_error.
|
|
Parameters
|
Returns
|
Example[[true,"Error Message"]] call XPT_fnc_errorReport;
| XPT_fnc_exportInventory | |
|---|---|
| Exports the inventory of a unit to the XPTLoadouts format. | |
Parameters
|
Returns
|
Example[player] call XPT_fnc_exportInventory;
| XPT_fnc_fpsMarkers | |
|---|---|
| Creates map markers to indicate server adn headless client framerates. | |
Parameters
|
Returns
|
ExampleCalled in postInit on mission start
| XPT_fnc_headlessConnect | |
|---|---|
| Handles setting up a headless client | |
Parameters
|
Returns
|
ExampleCalled from initPlayerServer.sqf
| XPT_fnc_headlessDisconnect | |
|---|---|
| Handles a headless client that disconnects mid-mission. | |
Parameters
|
Returns
|
ExampleCalled from a "PlayerDisconnected" mission event handler
| XPT_fnc_headlessSetGroupOwner | |
|---|---|
| Moves groups over to the HC. | |
Parameters
|
Returns
|
Example[group] call XPT_fnc_headlessSetGroupOwner;
| XPT_fnc_headlessSetup | |
|---|---|
| Handles setting up the headless client framework upon mission start. | |
Parameters
|
Returns
|
ExampleCalled in preInit upon mission start
| XPT_fnc_initPlayerLocal | |
|---|---|
| Handles template specific entries in initPlayerLocal. | |
Parameters
|
Returns
|
ExampleCalled from initPlayerLocal.sqf
| XPT_fnc_initPlayerServer | |
|---|---|
| Handles template specific entries in initPlayerServer. | |
Parameters
|
Returns
|
ExampleCalled from initPlayerServer.sqf
| XPT_fnc_initServer | |
|---|---|
| Handles template specific entries in initServer. | |
Parameters
|
Returns
|
ExampleCalled from initServer.sqf
| XPT_fnc_loadCurrentInventory | |
|---|---|
| Loads the current inventory for a unit. Uses the classname to select a loadout. | |
Parameters
|
Returns
|
Example[unit] call XPT_fnc_loadCurrentInventory;
| XPT_fnc_loadInventory | |
|---|---|
| Loads a custom inventory from an XPTLoadouts class. | |
Parameters
|
Returns
|
Example[unit,config] call XPT_fnc_loadInventory;
| XPT_fnc_loadInventoryLegacy | |
|---|---|
| Loads a custom inventory from a legacy XPTLoadouts class. | |
Parameters
|
Returns
|
Example[unit,config] call XPT_fnc_loadInventoryLegacy;
| XPT_fnc_loadItemCargo | |
|---|---|
| Handles setting up the item cargo of an object/vehicle. | |
Parameters
|
Returns
|
Example[object,"ammobox1",true] call XPT_fnc_loadItemCargo;
| XPT_fnc_mapMarkersClient | |
|---|---|
| Unhides map markers of friendly groups in TvT missions. | |
Parameters
|
Returns
|
Example["marker1",group1] call XPT_fnc_mapMarkersClient;
| XPT_fnc_mapMarkersServer | |
|---|---|
| Handles creating and updating group-markers on the map. Runs automatically on mission start. | |
Parameters
|
Returns
|
Example[true] call XPT_fnc_mapMarkersServer;
| XPT_fnc_onPlayerKilled | |
|---|---|
| Handles template specific entries in onPlayerKilled. | |
Parameters
|
Returns
|
ExampleCalled from onPlayerKilled.sqf
| XPT_fnc_onPlayerRespawn | |
|---|---|
| Handles template specific entries in onPlayerRespawn. | |
Parameters
|
Returns
|
ExampleCalled from onPlayerRespawn.sqf
| XPT_fnc_radioHandleDeath | |
|---|---|
| Handles saving radio settings when a player dies. | |
Parameters
|
Returns
|
ExampleCalled from XPT_fnc_onPlayerKilled
| XPT_fnc_radioHandleRespawn | |
|---|---|
| Handles assigning radio settings when a player respawns. | |
Parameters
|
Returns
|
Example[player] call XPT_fnc_radioHandleRespawn;
| XPT_fnc_radioInit | |
|---|---|
| Configures radio settings according to mission settings. | |
Parameters
|
Returns
|
ExampleCalled in preInit on mission start
| XPT_fnc_stageInit | |
|---|---|
| Initialises the stage system. | |
Parameters
|
Returns
|
ExampleCalled in preInit on mission start
| XPT_fnc_stageUpdate | |
|---|---|
| Updates the current stage. Handles switching between stages. | |
Parameters
|
Returns
|
Example["stage2",true,true] call XPT_fnc_stageUpdate;
| XPT_fnc_updateTask | |
|---|---|
| Handles updating tasks from an XPTTaskUpdates config. | |
Parameters
|
Returns
|
Example["vipKilled"] call XPT_fnc_updateTask;
| XPT_fnc_vehicleSetup | |
|---|---|
| Handles setting up a vehicle from an XPTVehicleSetup config. | |
Parameters
|
Returns
|
Example[vehicle,"loadout1"] call XPT_fnc_vehicleSetup;
| XPT_fnc_vehicleSetupTurret | |
|---|---|
| Handles setting up a vehicle turret. | |
Parameters
|
Returns
|
ExampleCalled from XPT_fnc_vehicleSetup