DayZ
1.24
Loading...
Searching...
No Matches
CAContinuousFish.c
Go to the documentation of this file.
1
class
CAContinuousFish
:
CAContinuousBase
2
{
3
protected
FishingRod_Base
m_Rod
;
4
5
override
void
Setup
(
ActionData
action_data
)
6
{
7
Class
.
CastTo
(
m_Rod
,
action_data
.m_MainItem);
8
}
9
10
override
int
Execute
(
ActionData
action_data
)
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
};
FishingRod_Base
void FishingRod_Base()
Definition
FishingRod_Base.c:69
ActionData
Definition
ActionBase.c:21
CAContinuousBase
Definition
CAContinuousBase.c:2
CAContinuousFish
Definition
CAContinuousFish.c:2
CAContinuousFish::Execute
override int Execute(ActionData action_data)
Definition
CAContinuousFish.c:10
CAContinuousFish::m_Rod
FishingRod_Base m_Rod
Definition
CAContinuousFish.c:3
CAContinuousFish::Setup
override void Setup(ActionData action_data)
Definition
CAContinuousFish.c:5
Class
Super root of all classes in Enforce script.
Definition
EnScript.c:11
Param3
Definition
EntityAI.c:95
GetGame
proto native CGame GetGame()
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
UA_ERROR
const int UA_ERROR
Definition
constants.c:455
UA_PROCESSING
const int UA_PROCESSING
Definition
constants.c:434
scripts
4_World
Classes
UserActionsComponent
ActionComponents
CAContinuousFish.c
Generated by
1.10.0