Hi, I cannot make script work on dedicated. I spawn a boat and want to have the option to push it to the water.
private _actionA = ["<t shadow='2' color='#f5f242'>PUSH</t>", {
params ["_target", "_caller", "_actionId", "_arguments"];
_target setVelocity [(sin(direction _caller))*3, (cos(direction _caller))*3, 0];
},nil, 6, false, true,"", "true", 3,false,"",""];
[_boat, _actionA] remoteExec ["addAction",[0,-2] select isDedicated,_boat];
Works in eden but not on dedi. Similar script for unbuilding the boat is working ok in dedi.
//works perfectlly on dedicated
private _actionB = ["<t shadow='2' color='#f5f242'>UNBUILD</t>", {
params ["_target", "_caller", "_actionId", "_arguments"];
deleteVehicle _target;
},nil, 6, false, true,"","true", 3,false,"",""];
[_boat, _actionB] remoteExec ["addAction",[0,-2] select isDedicated,_boat];