BIS fnc deltaTime: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 28: | Line 28: | ||
["TAG_duration", [[true]]] [[call]] [[BIS_fnc_deltaTime]]; {{cc|deletes the global variable "TAG_duration"}}</code> | ["TAG_duration", [[true]]] [[call]] [[BIS_fnc_deltaTime]]; {{cc|deletes the global variable "TAG_duration"}}</code> | ||
| [[diag_tickTime]] [[diag_deltaTime]] | |seealso= [[diag_tickTime]] [[diag_deltaTime]] | ||
}} | }} |
Revision as of 00:20, 17 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- MathDiagnostic
Syntax
- Syntax:
- Syntax needed
- Parameters:
- id: String - (Optional, default "generic") used to not create conflicts between different systems calling this function, each system can calculate delta time since it last ticked. Will be a missionNamespace variable
- clear: Boolean - (Optional, default false) if set to true, will delete the missionNamespace variable (defined by id)
- Return Value:
- Return value needed
Examples
- Example 1:
["TAG_duration"] call BIS_fnc_deltaTime; // Defines the starting point // ... private _duration1 = ["TAG_duration"] call BIS_fnc_deltaTime; // Gets time between starting point and now // ... private _duration2 = ["TAG_duration"] call BIS_fnc_deltaTime; // Gets time between _duration1 and now ["TAG_duration", true] call BIS_fnc_deltaTime; // deletes the global variable "TAG_duration"
Additional Information
- See also:
- diag_tickTime diag_deltaTime
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note