fn_potatoScan
This commit is contained in:
parent
bb38079cec
commit
93d942c4bb
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue