mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Get the client ID from a new logic object
This commit is contained in:
parent
ec88e4ad32
commit
056244602d
@ -40,8 +40,8 @@ GVAR(CurrentSpeedDial) = 0;
|
||||
// placed mine.
|
||||
if (isServer) then {
|
||||
["clientRequestsOrientation", {
|
||||
params ["_client"];
|
||||
["serverSendsOrientations", _client, GVAR(explosivesOrientations)] call EFUNC(common,targetEvent);
|
||||
params ["_logic"];
|
||||
["serverSendsOrientations", _logic, GVAR(explosivesOrientations)] call EFUNC(common,targetEvent);
|
||||
}] call EFUNC(common,addEventHandler);
|
||||
} else {
|
||||
["serverSendsOrientations", {
|
||||
@ -52,8 +52,9 @@ if (isServer) then {
|
||||
} forEach _explosivesOrientations;
|
||||
}] call EFUNC(common,addEventHandler);
|
||||
|
||||
private _client = owner ACE_player;
|
||||
["clientRequestsOrientations", [_client]] call EFUNC(common,serverEvent);
|
||||
// Create a local logic to use a client ID
|
||||
private _logic = createGroup sideLogic createUnit ["Logic", [0,0,0], [], 0, "NONE"];
|
||||
["clientRequestsOrientations", [_logic]] call EFUNC(common,serverEvent);
|
||||
};
|
||||
|
||||
["interactMenuOpened", {
|
||||
|
Loading…
Reference in New Issue
Block a user