mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Added a working defibrillator
Adds the player_revive class which checks whether the target is a dead player and if a defibrillator is in inventory. if so will remoteexec Epoch_server_revivePlayer. Uses the Group Menu icon but would be better if there were a generic medical icon.
This commit is contained in:
parent
742d2b9ef8
commit
8b2dca3148
@ -541,3 +541,13 @@ class player_tempGroup_requests
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\group_requests_ca.paa";
|
||||
tooltip = "Temp Group Requests";
|
||||
};
|
||||
|
||||
// Working defibrillator
|
||||
|
||||
class player_revive
|
||||
{
|
||||
condition = "dyna_isDeadPlayer && ('ItemDefibrillator' in dyna_magazinesPlayer)";
|
||||
action = "[dyna_cursorTarget, player, Epoch_personalToken] remoteExec ['EPOCH_server_revivePlayer',2];";
|
||||
icon = "x\addons\a3_epoch_code\Data\UI\buttons\group_requests_ca.paa";
|
||||
tooltip = "Revive Player";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user