mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
testing forcing open inventory instead of message
This commit is contained in:
parent
0814faedb6
commit
10a18b6054
@ -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];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
|
@ -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];
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user