testing forcing open inventory instead of message

This commit is contained in:
vbawol 2017-12-10 08:25:31 -06:00
parent 0814faedb6
commit 10a18b6054
3 changed files with 8 additions and 8 deletions

View File

@ -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];
};
};

View File

@ -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

View File

@ -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];
};
};