DayZ 1.24
Loading...
Searching...
No Matches
ActionBandageBase.c
Go to the documentation of this file.
2{
4 {
5 if (player.GetBleedingManagerServer())
6 player.GetBleedingManagerServer().RemoveMostSignificantBleedingSourceEx(item);
7
8 PluginTransmissionAgents transmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents));
10
11 if (item.HasQuantity())
12 item.AddQuantity(-1, true);
13 else
14 item.Delete();
15 }
16}
PluginBase GetPlugin(typename plugin_type)
void ApplyBandage(ItemBase item, PlayerBase player)
const int AGT_ITEM_TO_FLESH
Definition constants.c:475