hello all friends a greeting, I come here asking for help, I am currently using a scripts to sit on chairs in multiplayer, I was previously using this scripts
in the chair
1.Place a Camping Chair on the map.
2.Add this to the Camping chair Init:
this addAction ["<t color='#0099FF'>Sit Down</t>","Chair\sitdown.sqf"]
this scripts sitdown
_chair = _this select 0;
_unit = _this select 1;
[[_unit, "Crew"], "MAC_fnc_switchMove"] spawn BIS_fnc_MP;
_unit setpos (getpos _chair);
_unit setDir ((getDir _chair) - 180);
standup = _unit addaction ["<t color='#0099FF'>Stand Up</t>","scripts\Chair\standup.sqf"];
_unit setpos [getpos _unit select 0, getpos _unit select 1,((getpos _unit select 2) +15002)];
but the problem of this initial scritps is that the player when getting up did it without problem, but the other player still saw him sitting, it seems that the action of the animation to get up was in local, then he modified this line to multiplayer in the scritps to sit down
standup = _unit addaction ["<t color='#68ccf6'>Levantarse</t>",{["scripts\Chair\standup.sqf","BIS_fnc_execVM",true,false] spawn BIS_fnc_MP;}];
The Standup scripts contain the following:
player switchMove "";
player removeaction standup
but the problem of this modification is that when using the action get up, raise all the players who are sitting, then I do not know how I could fix it, help please, I use this scripts because it allows me to use actions with the menu mouse scroll with objects that have functions of addAction, because I have seen others that the player can sit but does not allow to interact with objects while sitting