From 10a18b605434b1df8aa389b23ef7e7e3ef650d1d Mon Sep 17 00:00:00 2001 From: vbawol Date: Sun, 10 Dec 2017 08:25:31 -0600 Subject: [PATCH] testing forcing open inventory instead of message --- .../compile/epoch_looting/EPOCH_server_destroyTrash.sqf | 4 ++-- .../compile/epoch_looting/EPOCH_server_lootAnimal.sqf | 4 ++-- .../compile/epoch_looting/EPOCH_server_lootContainer.sqf | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/epoch_server/compile/epoch_looting/EPOCH_server_destroyTrash.sqf b/Sources/epoch_server/compile/epoch_looting/EPOCH_server_destroyTrash.sqf index 98ca7278..b115f80a 100644 --- a/Sources/epoch_server/compile/epoch_looting/EPOCH_server_destroyTrash.sqf +++ b/Sources/epoch_server/compile/epoch_looting/EPOCH_server_destroyTrash.sqf @@ -41,8 +41,8 @@ if (alive _object) then { if (isClass _config) then { if (random 1 < getNumber(_config >> "chance")) then { [_item, _payout] call EPOCH_serverLootObject; - _errorMsg = "You found something!"; - [_errorMsg, 5] remoteExec ['Epoch_message',_player]; + // force player to open gear on this object. + [_item, {player action["Gear", _this]}] remoteExec ["call", _player]; }; }; diff --git a/Sources/epoch_server/compile/epoch_looting/EPOCH_server_lootAnimal.sqf b/Sources/epoch_server/compile/epoch_looting/EPOCH_server_lootAnimal.sqf index bc2c345e..c17348ad 100644 --- a/Sources/epoch_server/compile/epoch_looting/EPOCH_server_lootAnimal.sqf +++ b/Sources/epoch_server/compile/epoch_looting/EPOCH_server_lootAnimal.sqf @@ -38,7 +38,7 @@ if !(isNull _object) then { }; [_item, _class, true] call EPOCH_serverLootObject; - _errorMsg = "You found something!"; - [_errorMsg, 5] remoteExec ['Epoch_message',_player]; + // force player to open gear on this object. + [_item, {player action["Gear", _this]}] remoteExec ["call", _player]; }; true diff --git a/Sources/epoch_server/compile/epoch_looting/EPOCH_server_lootContainer.sqf b/Sources/epoch_server/compile/epoch_looting/EPOCH_server_lootContainer.sqf index 0b032da3..2d9a7fdb 100644 --- a/Sources/epoch_server/compile/epoch_looting/EPOCH_server_lootContainer.sqf +++ b/Sources/epoch_server/compile/epoch_looting/EPOCH_server_lootContainer.sqf @@ -47,12 +47,12 @@ if !(_object in EPOCH_cleanupQueue) then { }; [_object, _type] call EPOCH_serverLootObject; - _errorMsg = "You found something!"; - [_errorMsg, 5] remoteExec ['Epoch_message',_player]; + // force player to open gear on this object. + [_object, {player action["Gear", _this]}] remoteExec ["call", _player]; } else { [_object, "Food"] call EPOCH_serverLootObject; - _errorMsg = "You found Food!"; - [_errorMsg, 5] remoteExec ['Epoch_message',_player]; + // force player to open gear on this object. + [_object, {player action["Gear", _this]}] remoteExec ["call", _player]; }; };