Keep safe/lockbox vars server side until needed

The arrays for safes/lockboxes are kept on the server and when a client
goes to open the safe, a PV is sent to the server requesting the arrays.
Server sends info back.
This commit is contained in:
Matthew McConnell
2014-02-02 16:02:27 +00:00
parent bcc3d315ab
commit 2e08e53377
4 changed files with 46 additions and 7 deletions

View File

@@ -62,6 +62,8 @@ if (isServer) then {
"PVDZE_obj_Trade" addPublicVariableEventHandler {(_this select 1) spawn server_tradeObj};
"PVDZE_plr_TradeMenu" addPublicVariableEventHandler {(_this select 1) spawn server_traders};
"PVDZE_plr_DeathB" addPublicVariableEventHandler {(_this select 1) spawn server_deaths};
"PVDZE_obj_localVars" addPublicVariableEventHandler {(_this select 1) spawn server_getLocalObjVars};
};
//Client only