ACE3/addons/common/functions/fnc_isSwimming.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

21 lines
415 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: das attorney, Jonpas
* Check if unit is swimming (surface swimming or diving).
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* If unit is swimming <BOOL>
*
* Example:
* [bob] call ace_common_fnc_isSwimming
*
* Public: Yes
*/
params [["_unit", objNull, [objNull]]];
((animationState _unit) select [1, 3]) in ["bdv","bsw","dve","sdv","ssw","swm"]