IVehicleSeatAction

Interface used to implement interactive elements for the player passenger

C++
struct IVehicleSeatAction : public IVehicleObject {
  string m_name;
};
File

IVehicleSystem.h

Description

The tank turret, headlights, vehicle weapons and steering wheels are all examples of vehicle seat actions.

IVehicleSeatAction::m_name Data Member
C++
string m_name;
IVehicleSeatAction::ForceUsage Method
C++
virtual void ForceUsage() = 0;
IVehicleSeatAction::GetId Method
C++
virtual TVehicleObjectId GetId() = 0;
Description
IVehicleSeatAction::GetMemoryUsage Method
C++
virtual void GetMemoryUsage(ICrySizer * pSizer) const = 0;
IVehicleSeatAction::GetName Method
C++
virtual const char* GetName() const;
Description
IVehicleSeatAction::Init Method
C++
virtual bool Init(IVehicle* pVehicle, IVehicleSeat* pSeat, const CVehicleParams& table) = 0;
IVehicleSeatAction::OnAction Method
C++
virtual void OnAction(const TVehicleActionId actionId, int activationMode, float value) = 0;
IVehicleSeatAction::OnSpawnComplete Method
C++
virtual void OnSpawnComplete();
IVehicleSeatAction::PostSerialize Method
C++
virtual void PostSerialize() = 0;
IVehicleSeatAction::PrePhysUpdate Method
C++
virtual void PrePhysUpdate(const float dt);
IVehicleSeatAction::Release Method
C++
virtual void Release() = 0;
IVehicleSeatAction::Reset Method
C++
virtual void Reset() = 0;
IVehicleSeatAction::Serialize Method

Serialize the vehicle object

C++
virtual void Serialize(TSerialize ser, EEntityAspects aspects) = 0;
IVehicleSeatAction::StartUsing Method
C++
virtual void StartUsing(EntityId passengerId) = 0;
IVehicleSeatAction::StopUsing Method
C++
virtual void StopUsing() = 0;
IVehicleSeatAction::Update Method

Update the vehicle object

C++
virtual void Update(const float deltaTime) = 0;
Parameters
Parameters
Description
const float deltaTime
total time for the update, in seconds
Description

Used to handle any time sensitive updates. In example, rotation for turret parts is implemented in this function.