DayZ
1.24
Loading...
Searching...
No Matches
DayZPlayerImplementVehicle.c
Go to the documentation of this file.
1
class
GearChangeActionCallback
:
HumanCommandActionCallback
2
{
3
// Left for backwards compatibility, but never ever store HumanCommandVehicle in a variable used later
4
HumanCommandVehicle
m_hcv
;
5
6
void
SetVehicleCommand
(
HumanCommandVehicle
hcv
)
7
{
8
//m_hcv = hcv;
9
hcv
.SetClutchState(
true
);
10
}
11
12
//Command events
13
override
void
OnFinish
(
bool
pCanceled
)
14
{
15
Human
owner
=
GetHuman
();
16
if
(
owner
)
17
{
18
HumanCommandVehicle
hcv
=
owner
.GetCommand_Vehicle();
19
if
(
hcv
)
20
hcv
.SetClutchState(
false
);
21
}
22
}
23
};
24
GearChangeActionCallback
Definition
DayZPlayerImplementVehicle.c:2
GearChangeActionCallback::SetVehicleCommand
void SetVehicleCommand(HumanCommandVehicle hcv)
Definition
DayZPlayerImplementVehicle.c:6
GearChangeActionCallback::OnFinish
override void OnFinish(bool pCanceled)
Definition
DayZPlayerImplementVehicle.c:13
GearChangeActionCallback::m_hcv
HumanCommandVehicle m_hcv
Definition
DayZPlayerImplementVehicle.c:4
HumanCommandActionCallback
Definition
StateCB.c:2
HumanCommandVehicle
Definition
human.c:685
Param3
Definition
EntityAI.c:95
GetHuman
proto native Human GetHuman()
get the human this cb belongs to
scripts
4_World
Entities
DayZPlayerImplementVehicle.c
Generated by
1.10.0