fn_getLocalCap

This commit is contained in:
Wyqer 2019-12-05 22:22:14 +01:00
parent b257d4a197
commit fec002f37b
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
1 changed files with 5 additions and 12 deletions

View File

@ -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