mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
bdea0fcdba
* Added respawn transition * Removed respawn transition from statemachine and added manual transition comment * Changed transiton to manual. Added easy way to get current status as well * Updated event reference * Fixed manualTransition call * Minor headers changes
23 lines
501 B
Plaintext
23 lines
501 B
Plaintext
/*
|
|
* Author: Zakant
|
|
* Gets the name of the current medical state of an unit. Unit has to be local to the caller.
|
|
*
|
|
* Arguments:
|
|
* 0: The Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Name of the current medical state of the unit <STRING>
|
|
*
|
|
* Example:
|
|
* [player] call ace_medical_fnc_getUnitState
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit"];
|
|
|
|
if (!local _unit) exitWith { ERROR("unit is not local"); };
|
|
|
|
[_unit, GVAR(STATE_MACHINE)] call CBA_statemachine_fnc_getCurrentState
|