fn_getLocalCap
This commit is contained in:
parent
b257d4a197
commit
fec002f37b
|
@ -2,24 +2,17 @@
|
|||
File: fn_getLocalCap.sqf
|
||||
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
|
||||
Date: 2019-12-03
|
||||
Last Update: 2019-12-03
|
||||
Last Update: 2019-12-05
|
||||
License: MIT License - http://www.opensource.org/licenses/MIT
|
||||
|
||||
Description:
|
||||
No description added yet.
|
||||
Gets the current blufor unit cap.
|
||||
|
||||
Parameter(s):
|
||||
_localVariable - Description [DATATYPE, defaults to DEFAULTVALUE]
|
||||
NONE
|
||||
|
||||
Returns:
|
||||
Function reached the end [BOOL]
|
||||
Blufor unit cap [NUMBER]
|
||||
*/
|
||||
// TODO
|
||||
private [ "_unitcap_local" ];
|
||||
|
||||
_unitcap_local = (round (infantry_cap / 2));
|
||||
if ( _unitcap_local > GRLIB_blufor_cap ) then {
|
||||
_unitcap_local = GRLIB_blufor_cap;
|
||||
};
|
||||
|
||||
_unitcap_local
|
||||
(round (infantry_cap / 2)) min GRLIB_blufor_cap
|
||||
|
|
Loading…
Reference in New Issue