CBA_fnc_waitAndExecute

Description

Executes a code once in unscheduled environment with a given game time delay.  Note that unlike PFEH, the delay is in CBA_missionTime not diag_tickTime (will be adjusted for time accl).

Parameters

_functionThe function you wish to execute.  <CODE>
_argsParameters passed to the function executing.  (optional) <ANY>
_delayThe amount of time in seconds before the code is executed.  (optional, default: 0) <NUMBER>

Passed Arguments

_thisParameters passed by this function.  Same as ‘_args’ above.  <ANY>

Returns

Nothing

Examples

[{player sideChat format ["5s later! _this: %1", _this];}, ["some","params",1,2,3], 5] call CBA_fnc_waitAndExecute;

Author

esteldunedain and PabstMirror, donated from ACE3

Close