|
Arma Reforger Script API
|
Public Member Functions | |
| proto external void | SetThrottle (float in) |
| Sets throttle input. | |
| proto external void | EngineStart () |
| Starts the engine. | |
| proto external void | EngineStop () |
| Stops the engine. | |
| proto external bool | EngineIsOn () |
| Returns true if engine is running. | |
| proto external int | RotorCount () |
| Returns number of rotors. | |
| proto external void | RotorSetForceScaleState (int rotorIdx, float forceScale) |
| Sets scaling factor of rotor force. | |
| proto external void | RotorSetTorqueScaleState (int rotorIdx, float torqueScale) |
| Sets scaling factor of rotor torque. | |
| proto external void | RotorGetTransform (int rotorIdx, out vector transform[4]) |
| Returns rotor transform in local space. | |
| proto external void | RotorGetAxis (int rotorIdx, out vector axis) |
| Returns rotor axis in local space. | |
| proto external float | RotorGetRadius (int rotorIdx) |
| Returns rotor radius. | |
| proto external SpinDirection | RotorGetSpinDirection (int rotorIdx) |
| Returns rotor spin direction. | |
| proto external float | RotorGetRPMTarget (int rotorIdx) |
| Returns rotor target RPM. | |
| proto external float | RotorGetRPM (int rotorIdx) |
| Returns rotor actual RPM. | |
| proto external RotorState | RotorGetState (int rotorIdx) |
| Returns rotor state (static, spinning or destroyed) | |
| proto external LandingGearType | LandingGearGetType () |
| Returns type of landing gear available. | |
| proto external float | GetAltitudeAGL () |
| Returns altitude above ground level (represents terrain detection) | |
Public Member Functions inherited from VehicleBaseSimulation | |
| proto external bool | HasAnyGroundContact () |
| Returns true if any wheel/landing gear has contact with ground or other object. | |
| proto external vector | GetGForce () |
| Returns the acceleration of the vehicle produced by mechanical forces. | |
| proto external float | GetGForceMagnitude () |
| Returns the total amount of acceleration of the vehicle produced by mechanical forces. | |
| proto external bool | IsValid () |
| Returns true if this component was properly initialized. | |
Public Member Functions inherited from GameComponent | |
| bool | OnTicksOnRemoteProxy () |
Additional Inherited Members | |
Static Public Member Functions inherited from VehicleBaseSimulation | |
| static proto void | SetSurfaceOverride (ResourceName surfaceMat) |
| Internal use only! Overrides surface material of wheel/track casts. | |
Protected Member Functions inherited from VehicleBaseSimulation | |
| void | OnInit (IEntity owner) |
| Called during EOnInit. | |
| proto external bool VehicleHelicopterSimulation.EngineIsOn | ( | ) |
Returns true if engine is running.
| proto external void VehicleHelicopterSimulation.EngineStart | ( | ) |
Starts the engine.
| proto external void VehicleHelicopterSimulation.EngineStop | ( | ) |
Stops the engine.
| proto external float VehicleHelicopterSimulation.GetAltitudeAGL | ( | ) |
Returns altitude above ground level (represents terrain detection)
| proto external LandingGearType VehicleHelicopterSimulation.LandingGearGetType | ( | ) |
Returns type of landing gear available.
| proto external int VehicleHelicopterSimulation.RotorCount | ( | ) |
Returns number of rotors.
| proto external void VehicleHelicopterSimulation.RotorGetAxis | ( | int | rotorIdx, |
| out vector | axis ) |
Returns rotor axis in local space.
| proto external float VehicleHelicopterSimulation.RotorGetRadius | ( | int | rotorIdx | ) |
Returns rotor radius.
| proto external float VehicleHelicopterSimulation.RotorGetRPM | ( | int | rotorIdx | ) |
Returns rotor actual RPM.
| proto external float VehicleHelicopterSimulation.RotorGetRPMTarget | ( | int | rotorIdx | ) |
Returns rotor target RPM.
| proto external SpinDirection VehicleHelicopterSimulation.RotorGetSpinDirection | ( | int | rotorIdx | ) |
Returns rotor spin direction.
| proto external RotorState VehicleHelicopterSimulation.RotorGetState | ( | int | rotorIdx | ) |
Returns rotor state (static, spinning or destroyed)
| proto external void VehicleHelicopterSimulation.RotorGetTransform | ( | int | rotorIdx, |
| out vector | transform[4] ) |
Returns rotor transform in local space.
| proto external void VehicleHelicopterSimulation.RotorSetForceScaleState | ( | int | rotorIdx, |
| float | forceScale ) |
Sets scaling factor of rotor force.
| proto external void VehicleHelicopterSimulation.RotorSetTorqueScaleState | ( | int | rotorIdx, |
| float | torqueScale ) |
Sets scaling factor of rotor torque.
| proto external void VehicleHelicopterSimulation.SetThrottle | ( | float | in | ) |
Sets throttle input.
| in | should be in range < 0, 1 > |