mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Various - Use configOf command for faster lookup (#8100)
* configOf * replace some use of CBA_fnc_getObjectConfig
This commit is contained in:
@ -32,7 +32,7 @@ private _unitTypePicture = "";
|
||||
private _vehicleTypePicture = "";
|
||||
private _vehiclePositionPicture = "";
|
||||
if (_focus != vehicle _focus) then {
|
||||
_vehicleTypePicture = getText (configFile >> "CfgVehicles" >> typeOf vehicle _focus >> "Picture");
|
||||
_vehicleTypePicture = getText (configOf vehicle _focus >> "Picture");
|
||||
|
||||
_vehiclePositionPicture = switch (_focus) do {
|
||||
case (commander vehicle _focus): {IMG_COMMANDER};
|
||||
|
Reference in New Issue
Block a user