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 (isClass _config) then {
|
||||||
if (random 1 < getNumber(_config >> "chance")) then {
|
if (random 1 < getNumber(_config >> "chance")) then {
|
||||||
[_item, _payout] call EPOCH_serverLootObject;
|
[_item, _payout] call EPOCH_serverLootObject;
|
||||||
_errorMsg = "You found something!";
|
// force player to open gear on this object.
|
||||||
[_errorMsg, 5] remoteExec ['Epoch_message',_player];
|
[_item, {player action["Gear", _this]}] remoteExec ["call", _player];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ if !(isNull _object) then {
|
|||||||
};
|
};
|
||||||
[_item, _class, true] call EPOCH_serverLootObject;
|
[_item, _class, true] call EPOCH_serverLootObject;
|
||||||
|
|
||||||
_errorMsg = "You found something!";
|
// force player to open gear on this object.
|
||||||
[_errorMsg, 5] remoteExec ['Epoch_message',_player];
|
[_item, {player action["Gear", _this]}] remoteExec ["call", _player];
|
||||||
};
|
};
|
||||||
true
|
true
|
||||||
|
@ -47,12 +47,12 @@ if !(_object in EPOCH_cleanupQueue) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
[_object, _type] call EPOCH_serverLootObject;
|
[_object, _type] call EPOCH_serverLootObject;
|
||||||
_errorMsg = "You found something!";
|
// force player to open gear on this object.
|
||||||
[_errorMsg, 5] remoteExec ['Epoch_message',_player];
|
[_object, {player action["Gear", _this]}] remoteExec ["call", _player];
|
||||||
} else {
|
} else {
|
||||||
[_object, "Food"] call EPOCH_serverLootObject;
|
[_object, "Food"] call EPOCH_serverLootObject;
|
||||||
_errorMsg = "You found Food!";
|
// force player to open gear on this object.
|
||||||
[_errorMsg, 5] remoteExec ['Epoch_message',_player];
|
[_object, {player action["Gear", _this]}] remoteExec ["call", _player];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user