VN_ms_fnc_dgbt_generateTaskId

From Savage Game Design Wiki
Jump to navigation Jump to search
← 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;