/* * Author: Glowbal * Handle entering an unconscious state. * * Arguments: * 0: The unit that will be put in an unconscious state * 1: Set unconsciouns (default: true) * 2: Minimum unconscious time (default: (round(random(10)+5))) * 3: Force AI Unconscious (skip random death chance) (default: false) * * ReturnValue: * nil * * Public: no */ #include "script_component.hpp" #define DEFAULT_DELAY (round(random(10)+5)) params ["_unit", "_event", "_args"]; [_unit, true] call FUNC(setUnconscious);