mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
412 B
Plaintext
21 lines
412 B
Plaintext
|
/*
|
||
|
* 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
|
||
|
*/
|
||
|
#include "script_component.hpp"
|
||
|
|
||
|
params [["_unit", objNull, [objNull]]];
|
||
|
|
||
|
((animationState _unit) select [1, 3]) in ["bdv","bsw","dve","sdv","ssw","swm"]
|