mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
delay setUnconscious until the settings are inited, fix #148
This commit is contained in:
parent
5f7c30dd7c
commit
07774647e9
@ -21,6 +21,11 @@
|
|||||||
|
|
||||||
#define DEFAULT_DELAY (round(random(10)+5))
|
#define DEFAULT_DELAY (round(random(10)+5))
|
||||||
|
|
||||||
|
// only run this after the settings are initialized
|
||||||
|
if !(EGVAR(common,settingsInitFinished)) exitWith {
|
||||||
|
EGVAR(common,runAtSettingsInitialized) pushBack [FUNC(setUnconscious), _this];
|
||||||
|
};
|
||||||
|
|
||||||
private ["_animState", "_originalPos", "_startingTime", "_isDead"];
|
private ["_animState", "_originalPos", "_startingTime", "_isDead"];
|
||||||
params ["_unit", ["_set", true], ["_minWaitingTime", DEFAULT_DELAY], ["_force", false]];
|
params ["_unit", ["_set", true], ["_minWaitingTime", DEFAULT_DELAY], ["_force", false]];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user