DayZ 1.24
Loading...
Searching...
No Matches
TetracyclineAntibiotics.c
Go to the documentation of this file.
2{
3 override void OnConsume(float amount, PlayerBase consumer)
4 {
5 if (consumer.GetModifiersManager().IsModifierActive(eModifiers.MDF_ANTIBIOTICS)) //effectively resets the timer
6 consumer.GetModifiersManager().DeactivateModifier(eModifiers.MDF_ANTIBIOTICS);
7
8 consumer.GetModifiersManager().ActivateModifier(eModifiers.MDF_ANTIBIOTICS);
9 }
10
11 override void SetActions()
12 {
13 super.SetActions();
14
15 AddAction(ActionForceConsumeSingle);
17 }
18}
void AddAction(typename actionName)
override void OnConsume(float amount, PlayerBase consumer)
eModifiers
Definition eModifiers.c:2