DayZ 1.24
Loading...
Searching...
No Matches
CAContinuousFish.c
Go to the documentation of this file.
2{
4
6 {
7 Class.CastTo(m_Rod, action_data.m_MainItem);
8 }
9
11 {
12 if (m_Rod != action_data.m_MainItem)
13 return UA_ERROR;
14
15 if (GetGame().IsServer())
16 m_Rod.AddPull(action_data.m_Player.GetDeltaT());
17 return UA_PROCESSING;
18 }
19};
void FishingRod_Base()
override int Execute(ActionData action_data)
FishingRod_Base m_Rod
override void Setup(ActionData action_data)
Super root of all classes in Enforce script.
Definition EnScript.c:11
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
const int UA_ERROR
Definition constants.c:455
const int UA_PROCESSING
Definition constants.c:434