DayZ 1.24
Loading...
Searching...
No Matches
Morphine.c
Go to the documentation of this file.
2{
3 override void SetActions()
4 {
5 super.SetActions();
6
9 }
10
11 override void OnApply(PlayerBase player)
12 {
13 if (!player)
14 return;
15 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_MORPHINE)) //effectively resets the timer
16 player.GetModifiersManager().DeactivateModifier(eModifiers.MDF_MORPHINE);
17 player.GetModifiersManager().ActivateModifier(eModifiers.MDF_MORPHINE);
18 }
19};
void AddAction(typename actionName)
override void OnApply(PlayerBase player)
Definition Morphine.c:11
override void SetActions()
Definition Morphine.c:3
eModifiers
Definition eModifiers.c:2