Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
back to old
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Burkhardt committed May 30, 2018
1 parent ef3ba29 commit 2713140
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions [J]OPT.chernarus/cargo/functions/fnc_initCBAClassEvents.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,15 @@
["LandVehicle", "init", {
params ["_vec"];

if (local _vec) then {
[QGVAR(initCargo), [_vec]] call CBA_fnc_localEvent; // global effect
} else {
[QGVAR(initCargo), [_vec]] call CBA_fnc_serverEvent; // global effect
};

[_vec] call FUNC(initCargo); // global effect
[_vec] call FUNC(initDragging);

}, nil, nil, true] call CBA_fnc_addClassEventHandler;

["Air", "init", {
params ["_vec"];

if (local _vec) then {
[QGVAR(initCargo), [_vec]] call CBA_fnc_localEvent; // global effect
} else {
[QGVAR(initCargo), [_vec]] call CBA_fnc_serverEvent; // global effect
};
[_vec] call FUNC(initCargo);
[_vec] call FUNC(initDragging);

}, nil, nil, true] call CBA_fnc_addClassEventHandler;
Expand All @@ -54,11 +45,7 @@
["Thing", "init", {
params ["_item"];

if (local _item) then {
[QGVAR(initCargo), [_item]] call CBA_fnc_localEvent; // global effect
} else {
[QGVAR(initCargo), [_item]] call CBA_fnc_serverEvent; // global effect
};
[_item] call FUNC(initCargo);
[_item] call FUNC(initDragging);

}, nil, nil, true] call CBA_fnc_addClassEventHandler;

0 comments on commit 2713140

Please sign in to comment.