fn_potatoScan

This commit is contained in:
Wyqer 2019-12-07 23:00:19 +01:00
parent bb38079cec
commit 93d942c4bb
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
1 changed files with 10 additions and 11 deletions

View File

@ -2,23 +2,22 @@
File: fn_potatoScan.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2019-12-03
Last Update: 2019-12-03
Last Update: 2019-12-07
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
No description added yet.
Returns the current Potato 01, if alive.
Parameter(s):
_localVariable - Description [DATATYPE, defaults to DEFAULTVALUE]
NONE
Returns:
Function reached the end [BOOL]
Potato 01 [OBJECT]
*/
// TODO
private [ "_potatoes", "_potato" ];
_potatoes = vehicles select {typeof _x == huron_typename && alive _x};
_potato = objNull;
if ( count _potatoes != 0 ) then { _potato = _potatoes select 0 };
_potato
private _potatoes = vehicles select {typeof _x == huron_typename && alive _x};
if !(_potatoes isEqualTo []) then {
_potatoes select 0
} else {
objNull
};