Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
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
{
21
hcv.
SetClutchState
(
false
);
22
}
23
}
24
}
25
};
26
GearChangeActionCallback
Definition
dayzplayerimplementvehicle.c:2
GearChangeActionCallback::m_hcv
HumanCommandVehicle m_hcv
Definition
dayzplayerimplementvehicle.c:4
GearChangeActionCallback::SetVehicleCommand
void SetVehicleCommand(HumanCommandVehicle hcv)
Definition
dayzplayerimplementvehicle.c:6
GearChangeActionCallback::OnFinish
override void OnFinish(bool pCanceled)
Definition
dayzplayerimplementvehicle.c:13
HumanCommandActionCallback
Definition
statecb.c:2
HumanCommandVehicle
Definition
human.c:690
HumanCommandVehicle::SetClutchState
proto native void SetClutchState(bool pState)
Human
Definition
human.c:1333
Human::GetCommand_Vehicle
proto native HumanCommandVehicle GetCommand_Vehicle()
GetHuman
proto native Human GetHuman()
get the human this cb belongs to
Games
Dayz
scripts
4_world
entities
dayzplayerimplementvehicle.c
Generated by
1.17.0