Difference between revisions of "VN ms fnc dgbt generateTaskId"

From Savage Game Design Wiki
Jump to navigation Jump to search
vn>Unknown user
m (Generated by LM_exportFunctionsToWiki.sqf)
 
(Page filling)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
 
|v= 1.00
 
|v= 1.00
  
|a= Wyqer, veteran29
+
|author= Wyqer, veteran29
 +
 
 +
|a=
  
 
|e=
 
|e=
Line 10: 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:
 
        Generates task ID.
 
  
    Parameter(s):
+
|s= [parentTask] call [[VN_ms_fnc_dgbt_generateTaskId]]
        _parentTask - Parent task for creation of DGBTs as child task. (optional) [STRING, defaults to ""]
 
  
    Returns:
+
|p1n= parentTask
        Task ID and createTask parameter [ARRAY]
+
|p1t= string
*/
+
|p1d= if provided, task will be created as a child task to this one
 
+
|p1v= ""
</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 38: 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;