This page is a list of current functions and framehandlers that you can use to tap into to help give some performance to your missions.
You can read more about functions on the Arma 3 wiki
Description:
* Adds per Frame Handler
* A frame handler runs every x seconds based on delay argument
*
* [function,delay,args] call CYT_fnc_addPerFrameHandler
*
* - function
* <code> The function to execute
* - delay
* <number> Intervall between executions
* - args
* <array> Array of arguments passed to the function
*
* Returns: <number> Handle representing the added Frame Handler
*
* Arguments passed to function:
* 0: args
* 1: handle
*
* - Example: [{hint (_this # 0 # 0)}, 5, ["eggs"]] call CYT_fnc_addPerFrameHandler
* Would hint "eggs" every 5 seconds.
*
* Locality: Runs entirely locally
Description: Adds backpack or weapon or item or magazine to container
* Adds backpack or weapon or item or magazine to container
*
* Parameter(s):
* 0: String: Item to add
* 1: object: Container to add the item into
* 2: number: amount to add
* Returns:
* true
Description: Adds backpack or weapon or item or magazine to container
* Adds backpack or weapon or item or magazine to container
*
* Parameter(s):
* 0: String: Item to add
* 1: object: Container to add the item into
* 2: number: amount to add
* Returns:
* true
Description:
* Returns false if 0 and true if higher than 0
*
* Parameter(s):
* 0: PARAMCLASSNAME - STRING
*
* Returns:
* NOTHING
Description: Creates invisible wall from pos to pos in straight line
* Creates invisible wall from pos to pos in straight line
*
* Parameter(s):
* 0: FROM
* 1: To
*
* Returns:
* NOTHING
Description: Creates a wall out of a specific object from one point to another
* Creates a wall out of a specific object from one point to another
*
* Parameter(s):
* 0: Type - STRING - classname of the obj used for wall
* 1: Position from - ARRAY - Position array for start point
* 2: Position to - ARRAY - Position array for end point
* 3: Rotation - NUMBER - number to adjust rotation of the objects within the wall
* 4: Length correction - NUMBER - Use to add spacing or overlap
*
* Returns:
* NOTHING
* TODO: Some of the corners aren't perfect
Description: Returns all AI spawn points, including editor placed ones.
* Returns all AI spawn points, including editor placed ones.
*
* Parameter(s):
* 0: ARRAY: Position
* 1: NUMBER: Radius
* Returns:
* Array with positions
* [position,position...]
Description: Gets classname of any object, even if typeOf fails
* Gets classname of any object, even if typeOf fails
*
* Parameter(s):
* 0:
*
* Returns:
* NOTHING
Description: Returns all LOOT spawn points, including editor placed ones.
* Returns all LOOT spawn points, including editor placed ones.
*
* Parameter(s):
* 0: ARRAY: Position
* 1: NUMBER: Radius
*
* Returns:
* Array with positions
* [position,position...]
Description: Makes a otherwise undamagable object, damagable.
* ToDo fn_makeObjectDamagable.sqf
*
* Parameter(s):
* 0: object : object that is affected
* 1: number : hitpoints
* 2: function : function that runs on objects death
* Function gets same paramters passed as the hitPart event
* Returns:
* NOTHING
Description: Removes a frame handler
* Remove per Frame Handler
* [handle] call CYT_fnc_removePerFrameHandler
* - handle
* <number> the handle representing a running perFrameHandler
*
* - Example: [0] call CYT_fnc_removePerFrameHandler
* Would remove perFramehHandler with handle 0
*
* Returns: Removed element
*
* Locality: Runs entirely locally, therfore condition is evaluated local only as well
*
Description:
Parameter(s):
* 0:
*
* Returns:
* NOTHING
Description: Executes script in unscheduled environment after delay
* Executes script in unscheduled environment after delay
* [function,delay,args] call CYT_fnc_waitAndExecute
* - function
* <code> The function to execute args are available with _this
* - delay
* <number> Time in seconds until execution
* - args
* <array> Array of arguments passed to the function
*
* Returns: true
*
* - Example: [{hint (_this # 0)}, 3, ["BEANS"]] call CYT_fnc_waitAndExecute
* Prints BEANS after 3 seconds
*
* Locality: Runs entirely locally
Description: Executes script in unscheduled environment once condition is true
* Executes script in unscheduled environment once condition is true
*
* [function,condition,delay,args,timeout] call CYT_fnc_waitUntilAndExecute
*
* - function
* <code> The function to execute, args is also avaiable _this
* - condition
* <string> The condition to wait for, args is also avaiable in condition as _this
* - delay
* <number> Intervall in seconds to check the condition
* - args
* <array> Array of arguments passed to the function and condition
* - timeout
* <number> Time in seconds until the waitUntilAndExecute should just remove itself without executing. -1 for never timing out
*
* Returns: true
*
* Locality: Local
*
* - Example: [{hint str (_this # 0)}, "typeOf vehicle player isEqualTo (_this # 0)", 1, ["B_Quadbike_01_F"],-1] call CYT_fnc_waitUntilAndExecute
* Would hint "B_Quadbike_01_F" once player enters a quadbike.
Description:
* Currently only works with markers of shape RECTANGLE
*
* Parameter(s):
* 0: STRING - areamarker
*
* Returns:
* NOTHING
*
* TODO: Take marker rotation into account
Description: Does all the logic to determine if the position is ruled out or not by whitelist/blacklist module areas
* Description:
* Does all the logic to determine if the position is ruled out or not by whitelist/blacklist module areas.
* Also handles cases like no blacklist and/or whitelists being defined
* Parameter(s):
* 0: Module
* 1: POS
*
* Returns:
* Boolean: true if position should be considered, false if not
Description: Checks if given position/object is inside area of the module.
* Checks if given position/object is inside area of the module.
*
* Parameter(s):
* 0: OBJECT,POSITION
* 1: Module
* Returns:
* boolean