Arma Reforger Script API
|
Public Member Functions | |
proto external void | Shutdown () |
proto external bool | CanSwitchSeat () |
proto external VehicleBaseSimulation | GetBaseSimulation () |
Returns the base of simulation component associated with this controller. | |
proto external FuelManagerComponent | GetFuelManager () |
Returns the fuel manager associated with this controller. | |
proto external BaseLightManagerComponent | GetLightManager () |
Returns the light manager associated with this controller. | |
proto external PilotCompartmentSlot | GetPilotCompartmentSlot () |
Returns the pilot compartment slot associated with this controller. | |
proto external void | SetPilotCompartmentSlot (PilotCompartmentSlot pilot) |
Set the given compartment as the current pilot. | |
proto external SignalsManagerComponent | GetSignalsManager () |
Returns the signals manager associated with this controller. | |
proto external BaseWeaponManagerComponent | GetWeaponManager () |
Returns the weapon manager associated with this controller. | |
proto external void | CancelStart () |
proto external void | TryStartEngine () |
Try to start the engine with the chance of getting the engine not started based on engine startup chance. | |
proto external bool | StartEngine () |
Issue a start engine input request. | |
proto external void | ForceStartEngine () |
Forcibly starts the engine without any delay, only meant for cinematics, not to be used in any game logic! | |
proto external void | ForceStopEngine () |
Forcibly stops the engine without any delay, only meant for cinematics, not to be used in any game logic! | |
proto external void | StopEngine (bool playDriverAnimation=true) |
Stop the engine. | |
proto external bool | IsEngineOn () |
proto external float | GetEngineStartupChance () |
Returns the engine startup chance in <0, 100>. | |
proto external void | SetEngineStartupChance (float chance) |
Set the engine startup chance. | |
proto external bool | GetEngineDrowned () |
Returns true if the engine is drowned. | |
proto external void | SetEngineDrowned (bool drowned) |
Set the engine drowned. | |
proto external bool | ArePilotControlsLocked () |
proto external void | LockPilotControls (bool bIsLocked) |
void | OnEngineStartBegin () |
Gets called when the engine start routine begins (animation event - NOT IMPLEMENTED IN BASE VEHICLE). | |
void | OnEngineStartProgress () |
Get called while engine starter is active (animation event - NOT IMPLEMENTED IN BASE VEHICLE). | |
void | OnEngineStartInterrupt () |
Gets called when the engine start routine was interrupted. | |
void | OnEngineStartSuccess () |
Gets called when the engine start routine has successfully completed. | |
void | OnEngineStartFail (EVehicleEngineStartFailedReason reason) |
Gets called when the engine start routine has failed. | |
bool | OnBeforeEngineStart () |
Is called every time the controller wants to start the engine. | |
void | OnEngineStart () |
Is called every time the engine starts. | |
void | OnEngineStop () |
Is called every time the engine stops. | |
void | OnPostInit (IEntity owner) |
void | OnDelete (IEntity owner) |
Public Member Functions inherited from BaseControllerComponent | |
proto external IEntity | GetOwner () |
Returns the entity owner of the component. | |
proto external bool | CanMove () |
Returns state of movement capacity. | |
proto external void | SetCanMove (bool canMove) |
Changes state of movement capacity. Internally verifies if all necessary conditions are met. | |
bool | ValidateCanMove () |
Public Member Functions inherited from GameComponent | |
bool | OnTicksOnRemoteProxy () |
Static Public Member Functions | |
static proto EVehicleDrivingAssistanceMode | GetDrivingAssistanceMode () |
Returns the global driving assistance mode. | |
static proto void | SetDrivingAssistanceMode (EVehicleDrivingAssistanceMode mode) |
Sets the global driving assistance mode. | |
proto external bool BaseVehicleControllerComponent.ArePilotControlsLocked | ( | ) |
proto external void BaseVehicleControllerComponent.CancelStart | ( | ) |
proto external bool BaseVehicleControllerComponent.CanSwitchSeat | ( | ) |
proto external void BaseVehicleControllerComponent.ForceStartEngine | ( | ) |
Forcibly starts the engine without any delay, only meant for cinematics, not to be used in any game logic!
proto external void BaseVehicleControllerComponent.ForceStopEngine | ( | ) |
Forcibly stops the engine without any delay, only meant for cinematics, not to be used in any game logic!
proto external VehicleBaseSimulation BaseVehicleControllerComponent.GetBaseSimulation | ( | ) |
Returns the base of simulation component associated with this controller.
|
static |
Returns the global driving assistance mode.
proto external bool BaseVehicleControllerComponent.GetEngineDrowned | ( | ) |
Returns true if the engine is drowned.
proto external float BaseVehicleControllerComponent.GetEngineStartupChance | ( | ) |
Returns the engine startup chance in <0, 100>.
proto external FuelManagerComponent BaseVehicleControllerComponent.GetFuelManager | ( | ) |
Returns the fuel manager associated with this controller.
proto external BaseLightManagerComponent BaseVehicleControllerComponent.GetLightManager | ( | ) |
Returns the light manager associated with this controller.
proto external PilotCompartmentSlot BaseVehicleControllerComponent.GetPilotCompartmentSlot | ( | ) |
Returns the pilot compartment slot associated with this controller.
proto external SignalsManagerComponent BaseVehicleControllerComponent.GetSignalsManager | ( | ) |
Returns the signals manager associated with this controller.
proto external BaseWeaponManagerComponent BaseVehicleControllerComponent.GetWeaponManager | ( | ) |
Returns the weapon manager associated with this controller.
proto external bool BaseVehicleControllerComponent.IsEngineOn | ( | ) |
proto external void BaseVehicleControllerComponent.LockPilotControls | ( | bool | bIsLocked | ) |
bool BaseVehicleControllerComponent.OnBeforeEngineStart | ( | ) |
Is called every time the controller wants to start the engine.
Implemented in VehicleControllerComponent.
void BaseVehicleControllerComponent.OnDelete | ( | IEntity | owner | ) |
Implemented in VehicleControllerComponent.
void BaseVehicleControllerComponent.OnEngineStart | ( | ) |
Is called every time the engine starts.
Implemented in VehicleControllerComponent.
void BaseVehicleControllerComponent.OnEngineStartBegin | ( | ) |
Gets called when the engine start routine begins (animation event - NOT IMPLEMENTED IN BASE VEHICLE).
Implemented in VehicleControllerComponent.
void BaseVehicleControllerComponent.OnEngineStartFail | ( | EVehicleEngineStartFailedReason | reason | ) |
Gets called when the engine start routine has failed.
Implemented in VehicleControllerComponent.
void BaseVehicleControllerComponent.OnEngineStartInterrupt | ( | ) |
Gets called when the engine start routine was interrupted.
Implemented in VehicleControllerComponent.
void BaseVehicleControllerComponent.OnEngineStartProgress | ( | ) |
Get called while engine starter is active (animation event - NOT IMPLEMENTED IN BASE VEHICLE).
Implemented in VehicleControllerComponent.
void BaseVehicleControllerComponent.OnEngineStartSuccess | ( | ) |
Gets called when the engine start routine has successfully completed.
Implemented in VehicleControllerComponent.
void BaseVehicleControllerComponent.OnEngineStop | ( | ) |
Is called every time the engine stops.
Implemented in VehicleControllerComponent.
void BaseVehicleControllerComponent.OnPostInit | ( | IEntity | owner | ) |
Implemented in VehicleControllerComponent.
|
static |
Sets the global driving assistance mode.
proto external void BaseVehicleControllerComponent.SetEngineDrowned | ( | bool | drowned | ) |
Set the engine drowned.
drowned | True to set the engine drowned, false otherwise. |
proto external void BaseVehicleControllerComponent.SetEngineStartupChance | ( | float | chance | ) |
Set the engine startup chance.
chance | Startup chance in <0, 100>. |
proto external void BaseVehicleControllerComponent.SetPilotCompartmentSlot | ( | PilotCompartmentSlot | pilot | ) |
Set the given compartment as the current pilot.
proto external void BaseVehicleControllerComponent.Shutdown | ( | ) |
proto external bool BaseVehicleControllerComponent.StartEngine | ( | ) |
Issue a start engine input request.
proto external void BaseVehicleControllerComponent.StopEngine | ( | bool | playDriverAnimation = true | ) |
Stop the engine.
playDriverAnimation | The driver should play the animation or not. |
proto external void BaseVehicleControllerComponent.TryStartEngine | ( | ) |
Try to start the engine with the chance of getting the engine not started based on engine startup chance.