Files
KPLibSumava/kp_liberation.brf_sumava/functions/fn_potatoScan.sqf
Samuele Lorefice 9e023649ac initial files
2025-05-24 16:17:33 +02:00

24 lines
523 B
Plaintext

/*
File: fn_potatoScan.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2019-12-03
Last Update: 2019-12-07
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
Returns the current Potato 01, if alive.
Parameter(s):
NONE
Returns:
Potato 01 [OBJECT]
*/
private _potatoes = vehicles select {typeof _x == huron_typename && alive _x};
if !(_potatoes isEqualTo []) then {
_potatoes select 0
} else {
objNull
};