mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
CSW/Dragging - Handle null objects causing script errors (#9529)
* CSW - Handle static weapon be deleted * add same fix to dragging
This commit is contained in:
parent
902e365536
commit
d70c049b4f
@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
params ["_staticWeapon"];
|
params ["_staticWeapon"];
|
||||||
|
if (isNull _staticWeapon) exitWith { WARNING_1("%1 became null",_staticWeapon) };
|
||||||
private _typeOf = typeOf _staticWeapon;
|
private _typeOf = typeOf _staticWeapon;
|
||||||
private _configOf = configOf _staticWeapon;
|
private _configOf = configOf _staticWeapon;
|
||||||
private _configEnabled = (getNumber (_configOf >> "ace_csw" >> "enabled")) == 1;
|
private _configEnabled = (getNumber (_configOf >> "ace_csw" >> "enabled")) == 1;
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
params ["_unit"];
|
params ["_unit"];
|
||||||
|
if (isNull _unit) exitWith { WARNING_1("%1 became null",_unit) };
|
||||||
|
|
||||||
[_unit, true, [0, 1.1, 0.092], 180] call FUNC(setDraggable);
|
[_unit, true, [0, 1.1, 0.092], 180] call FUNC(setDraggable);
|
||||||
[_unit, true, [0.4, -0.1, -1.25], 195] call FUNC(setCarryable); // Hard-coded selection: "LeftShoulder"
|
[_unit, true, [0.4, -0.1, -1.25], 195] call FUNC(setCarryable); // Hard-coded selection: "LeftShoulder"
|
||||||
|
Loading…
Reference in New Issue
Block a user