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