mirror of
https://github.com/Ghostrider-DbD-/GMS_RC.git
synced 2024-08-30 16:02:11 +00:00
28 lines
585 B
Plaintext
28 lines
585 B
Plaintext
/*
|
|
By Ghostrider [GRG]
|
|
Copyright 2016
|
|
|
|
--------------------------
|
|
License
|
|
--------------------------
|
|
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
|
|
|
|
http://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
*/
|
|
#include "\GMS\Compiles\Init\GMS_defines.hpp"
|
|
|
|
params ["_AIList",["_returnMode",0]];
|
|
private["_alive","_total","_return"];
|
|
|
|
_total = count _AIList;
|
|
_alive = {alive _x} count _AIList;
|
|
switch (_returnMode) do
|
|
{
|
|
case 0:{_return = (_alive / _total)};
|
|
case 1:{_return = [_alive,_total]};
|
|
};
|
|
|
|
_return
|
|
|
|
|