Difference between revisions of "VN ms fnc dgbt generateTaskId"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - "]]; |p1n=" to "]] |p1n=")
(Page filling)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:TODO]]
 
 
{{Function
 
{{Function
  
Line 12: Line 11:
 
|g1= dgbt
 
|g1= dgbt
  
|d= <pre>/*
+
|d= Generates a dgbt-prefixed task ID - format <tt>dgbt_t_&lt;round diag_tickTime&gt;_&lt;random 1000&gt;</tt>.
    Author: Wyqer, veteran29
 
    Date: 2019-07-14
 
  
    Description:
+
|s= [parentTask] call [[VN_ms_fnc_dgbt_generateTaskId]]
        Generates task ID.
 
  
    Parameter(s):
+
|p1n= parentTask
        _parentTask - Parent task for creation of DGBTs as child task. (optional) [STRING, defaults to ""]
+
|p1t= string
 
+
|p1d= if provided, task will be created as a child task to this one
    Returns:
+
|p1v= ""
        Task ID and createTask parameter [ARRAY]
 
*/
 
 
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
 
 
|s= [] call [[vn_ms_fnc_dgbt_generateTaskId]]
 
 
 
|p1n=
 
|p1t=
 
|p1d=
 
|p1v=
 
  
 
|p2n=
 
|p2n=
Line 40: Line 25:
 
|p2v=
 
|p2v=
  
|r1t=
+
|r1t= array
|r1d=
+
|r1d= format [task id, task creation argument] ([generatedId, generatedId] or [generatedId, [generatedId, parentTaskId]])
 +
 
 +
|x1= <code>[] call [[VN_ms_fnc_dgbt_generateTaskId]];</code>
  
|x1= <code>-</code>
+
|x2= <code>["theParentTask"] call [[VN_ms_fnc_dgbt_generateTaskId]];</code>
 
}}
 
}}

Latest revision as of 17:57, 23 February 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

Description

Generates a dgbt-prefixed task ID - format dgbt_t_<round diag_tickTime>_<random 1000>.

Syntax

Syntax
[parentTask] call VN_ms_fnc_dgbt_generateTaskId
Parameters
parentTask: String - (Optional, default "") if provided, task will be created as a child task to this one
Return value
Array - format [task id, task creation argument] ([generatedId, generatedId] or [generatedId, [generatedId, parentTaskId]])

Examples

Example 1
[] call VN_ms_fnc_dgbt_generateTaskId;
Example 2
["theParentTask"] call VN_ms_fnc_dgbt_generateTaskId;