Merge pull request #2604 from acemod/340fixunconaftersettngsinit

delay setUnconscious until the settings are inited
This commit is contained in:
commy2 2015-09-26 19:54:09 +02:00
commit f77242fce3

View File

@ -21,6 +21,11 @@
#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"];
params ["_unit", ["_set", true], ["_minWaitingTime", DEFAULT_DELAY], ["_force", false]];