DayZ_Scripts / scripts /4_World /DayZ /Entities /DayZPlayerImplementVehicle.c
D3ltaQ's picture
Upload 2197 files
24b81cb verified
raw
history blame contribute delete
528 Bytes
class GearChangeActionCallback : HumanCommandActionCallback
{
// Left for backwards compatibility, but never ever store HumanCommandVehicle in a variable used later
HumanCommandVehicle m_hcv;
void SetVehicleCommand(HumanCommandVehicle hcv)
{
//m_hcv = hcv;
hcv.SetClutchState(true);
}
//Command events
override void OnFinish(bool pCanceled)
{
Human owner = GetHuman();
if (owner)
{
HumanCommandVehicle hcv = owner.GetCommand_Vehicle();
if (hcv)
{
hcv.SetClutchState(false);
}
}
}
};