Browse Source

add formats to debug

m3ales 4 years ago
parent
commit
5fd24f3821

+ 3 - 3
addons - Copy/RD501_Main/functions/heavy_weapon/fnc_heavyWeaponHandlePlayerWeaponChanged.sqf

@@ -1,7 +1,7 @@
 params ["_unit", "_weapon"];
 systemChat "Handling Weapon Swap";
 if(_weapon == "" && !isForcedWalk _unit) exitWith { systemChat "No Weapon"; };
-systemChat _weapon + " :: " + _unit;
+systemChat format["%1 :: %2",_weapon, _unit];
 
 private _fn_unForceWalk = {
 	params["_target"];
@@ -11,7 +11,7 @@ private _fn_unForceWalk = {
 };
 private _forceWalk = _unit getVariable ["RD501_FORCE_WALK", false];
 
-systemChat "Checking _forceWalk :: " + _forceWalk;
+systemChat format["Checking _forceWalk :: %1", _forceWalk];
 if(_weapon == "" && _forceWalk) exitWith {
 	_unit call _fn_unForceWalk;
 };
@@ -23,7 +23,7 @@ private _fn_forceWalk = {
 	_target forceWalk true;
 };
 
-systemChat "Weapon in array :: " + (_weapon in RD501_FORCE_WALK_WEAPONS);
+systemChat format["Weapon in array :: %1", (_weapon in RD501_FORCE_WALK_WEAPONS)];
 if(_weapon in RD501_FORCE_WALK_WEAPONS) exitWith 
 {
 	if(!isForcedWalk _unit) then{