mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Dogtags - Drop dogtag on ground if unit doesn't have inventory space (#10094)
* Drop dogtag on ground if unit doesn't have inventory space * Only allow taking of dogtags if unit has space
This commit is contained in:
parent
71afce53c1
commit
ba47c12a97
@ -20,7 +20,8 @@ params ["_item", "_dogtagData"];
|
||||
|
||||
if (_item == "") exitWith {};
|
||||
|
||||
[ace_player, _item] call CBA_fnc_addItem;
|
||||
// Verify that the unit has inventory space, otherwise drop the dogtag on the ground
|
||||
[ace_player, _item, true] call CBA_fnc_addItem;
|
||||
|
||||
_dogtagData params ["_nickName"];
|
||||
private _displayText = format [localize LSTRING(takeDogtagSuccess), _nickName];
|
||||
|
@ -23,4 +23,4 @@ if (isNull _target) exitWith {false};
|
||||
// check if disabled for faction
|
||||
if ((faction _target) in GVAR(disabledFactions)) exitWith {false};
|
||||
|
||||
(!alive _target) || {_target getVariable ["ACE_isUnconscious", false]}
|
||||
((!alive _target) || {_target getVariable ["ACE_isUnconscious", false]}) && {_player canAdd ["ACE_dogtag", 1/*, true*/]} // Todo: Uncomment in 2.18
|
||||
|
Loading…
Reference in New Issue
Block a user