Arma Reforger Script API
|
Public Member Functions | |
proto external float | GetSpeedKmh () |
Returns current vehicle speed in km/h (kilometers per hour). | |
proto external float | GetSteering () |
Returns current steering input in range < -1, 1 > | |
proto external void | SetSteering (float in) |
Sets steering input. | |
proto external float | GetClutch () |
Returns current clutch value in range < 0, 1 > 0 . | |
proto external void | SetClutch (float in) |
Sets the clutch input. | |
proto external float | GetBrake () |
Returns current brake input in range < 0, 1 > | |
proto external void | SetBreak (float in, bool hb) |
Sets brake inputs. | |
proto external float | GetThrottle () |
returns current throttle input in range < 0, 1 > | |
proto external void | SetThrottle (float in) |
Sets throttle input. | |
proto external int | GetGear () |
Returns index of currently engaged gear. | |
proto external void | SetGear (int in) |
Switches to given gear. | |
proto external bool | IsHandbrakeOn () |
Returns whether handbrake is currently applied. | |
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 float | EngineGetRPMIdle () |
Returns idle rpm of the engine. | |
proto external float | EngineGetRPMPeakTorque () |
Returns rpm at which engine provides maximal torque. | |
proto external float | EngineGetRPMPeakPower () |
Returns rpm at which engine provides maximal power. | |
proto external float | EngineGetRPMMax () |
Returns maximal working rpm before engine explodes. | |
proto external float | EngineGetRPM () |
Returns current engine's RPM. | |
proto external float | EngineGetRPMFeedback () |
Returns RPM that is feeded back from rest of the powertrain. | |
proto external float | EngineGetLoad () |
Returns current engine load in range < 0, 1 > | |
proto external float | EngineGetPeakTorque () |
Returns initial engine's peak torque in Nm (newton-metre). | |
proto external float | EngineGetPeakTorqueState () |
Returns current engine's peak torque in Nm (newton-metre). | |
proto external void | EngineSetPeakTorqueState (float peakTorque) |
Sets current engine's peak torque. | |
proto external float | EngineGetPeakPower () |
Returns initial engine's peak power in kW (kilowatts). | |
proto external float | EngineGetPeakPowerState () |
Returns current engine's peak power in kW (kilowatts). | |
proto external void | EngineSetPeakPowerState (float peakPower) |
Sets current engine's peak power. | |
proto external float | GearboxGetEfficiency () |
Returns initial gearbox efficiency. | |
proto external float | GearboxGetEfficiencyState () |
Returns current gearbox efficiency. | |
proto external void | GearboxSetEfficiencyState (float efficiency) |
Sets current gearbox efficiency. | |
proto external int | GearboxGearsCount () |
Returns number of all gear ratios (neutral included). | |
proto external int | GearboxForwardGearsCount () |
Returns number of forward gears. | |
proto external int | WheelCount () |
Returns number of wheels. | |
proto external int | WheelGetIndex (string name) |
Returns stored index of the wheel based on its name. | |
proto external vector | WheelGetPosition (int wheelIdx, float displacement=0.0) |
Get the wheel position based on suspension. | |
proto external string | WheelGetName (int wheelIdx) |
Returns name of the wheel based on its index. | |
proto external bool | WheelHasContact (int wheelIdx) |
Returns true if wheel has contact with ground or other object. | |
proto external GameMaterial | WheelGetContactMaterial (int wheelIdx) |
Returns wheel contact material. | |
proto external vector | WheelGetContactPosition (int wheelIdx) |
Returns wheel contact position in world space. | |
proto external vector | WheelGetContactNormal (int wheelIdx) |
Returns wheel contact normal. | |
proto external IEntity | WheelGetContactEntity (int wheelIdx) |
Returns entity which is in contact with wheel. | |
proto external EWheelContactLiquidState | WheelGetContactLiquidState (int wheelIdx) |
Returns whether and how is wheel in contact with some liquid. | |
proto external GameMaterial | WheelGetContactLiquidMaterial (int wheelIdx) |
Returns the material of the liquid which the wheel is in contact. | |
proto external vector | WheelGetContactLiquidPosition (int wheelIdx) |
Returns the position where the wheel touches a liquid surface. | |
proto external float | WheelGetRPM (int wheelIdx) |
Returns current wheel's RPM. | |
proto external float | WheelGetRadius (int wheelIdx) |
Returns initial wheel's radius. | |
proto external float | WheelGetRadiusState (int wheelIdx) |
Returns current wheel's radius. | |
proto external float | WheelSetRadiusState (int wheelIdx, float radius) |
Sets current wheel's radius. | |
proto external float | WheelGetMass (int wheelIdx) |
Returns initial wheel's mass. | |
proto external float | WheelGetMassState (int wheelIdx) |
Returns current wheel's mass. | |
proto external float | WheelSetMassState (int wheelIdx, float mass) |
Sets current wheel's mass. | |
proto external float | WheelGetLongitudinalSlip (int wheelIdx) |
Returns longitudinal slip of tyre. | |
proto external float | WheelGetLateralSlip (int wheelIdx) |
Returns lateral slip of tyre. | |
proto external float | WheelGetRollingDrag (int wheelIdx) |
Returns current wheel's rolling drag percentage. | |
proto external void | WheelSetRollingDrag (int wheelIdx, float drag) |
Sets current rolling drag percentage. | |
proto external float | WheelTyreGetRoughness (int wheelIdx) |
Returns initial roughness of wheel's tyre surface. | |
proto external float | WheelTyreGetRoughnessState (int wheelIdx) |
Returns current roughness of wheel's tyre surface. | |
proto external void | WheelTyreSetRoughnessState (int wheelIdx, float roughness) |
Sets current roughness of wheel's tyre surface. | |
proto external float | WheelTyreGetLongitudinalFriction (int wheelIdx) |
Returns tyre's initial longitudinal friction. | |
proto external float | WheelTyreGetLongitudinalFrictionState (int wheelIdx) |
Returns tyre's current longitudinal friction. | |
proto external void | WheelTyreSetLongitudinalFrictionState (int wheelIdx, float lngFriction) |
Sets tyre's current longitudinal friction. | |
proto external float | WheelTyreGetLateralFriction (int wheelIdx) |
Returns tyre's initial lateral friction. | |
proto external float | WheelTyreGetLateralFrictionState (int wheelIdx) |
Returns tyre's current lateral friction. | |
proto external void | WheelTyreSetLateralFrictionState (int wheelIdx, float latFriction) |
Sets tyre's current lateral friction. | |
proto external float | GetNoiseSteerSensitivity () |
Returns sensitivity against noise steer value of surface in range < 0, 1 > | |
proto external void | SetNoiseSteerSensitivity (float newValue) |
Sets sensitivity on noise steer. | |
proto external float | GetRoughnessSensitivity () |
Returns sensitivity against roughness value of surface in range < 0, 1 > | |
proto external void | SetRoughnessSensitivity (float newValue) |
Sets sensitivity on roughness value of surface. | |
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 | |
Protected Member Functions inherited from VehicleBaseSimulation | |
void | OnInit (IEntity owner) |
Called during EOnInit. | |
proto external float VehicleWheeledSimulation_SA_B.EngineGetLoad | ( | ) |
Returns current engine load in range < 0, 1 >
proto external float VehicleWheeledSimulation_SA_B.EngineGetPeakPower | ( | ) |
Returns initial engine's peak power in kW (kilowatts).
proto external float VehicleWheeledSimulation_SA_B.EngineGetPeakPowerState | ( | ) |
Returns current engine's peak power in kW (kilowatts).
proto external float VehicleWheeledSimulation_SA_B.EngineGetPeakTorque | ( | ) |
Returns initial engine's peak torque in Nm (newton-metre).
proto external float VehicleWheeledSimulation_SA_B.EngineGetPeakTorqueState | ( | ) |
Returns current engine's peak torque in Nm (newton-metre).
proto external float VehicleWheeledSimulation_SA_B.EngineGetRPM | ( | ) |
Returns current engine's RPM.
proto external float VehicleWheeledSimulation_SA_B.EngineGetRPMFeedback | ( | ) |
Returns RPM that is feeded back from rest of the powertrain.
proto external float VehicleWheeledSimulation_SA_B.EngineGetRPMIdle | ( | ) |
Returns idle rpm of the engine.
proto external float VehicleWheeledSimulation_SA_B.EngineGetRPMMax | ( | ) |
Returns maximal working rpm before engine explodes.
proto external float VehicleWheeledSimulation_SA_B.EngineGetRPMPeakPower | ( | ) |
Returns rpm at which engine provides maximal power.
proto external float VehicleWheeledSimulation_SA_B.EngineGetRPMPeakTorque | ( | ) |
Returns rpm at which engine provides maximal torque.
proto external bool VehicleWheeledSimulation_SA_B.EngineIsOn | ( | ) |
Returns true if engine is running.
proto external void VehicleWheeledSimulation_SA_B.EngineSetPeakPowerState | ( | float | peakPower | ) |
Sets current engine's peak power.
peakTorque | must be in kW (kilowatts). |
proto external void VehicleWheeledSimulation_SA_B.EngineSetPeakTorqueState | ( | float | peakTorque | ) |
Sets current engine's peak torque.
peakTorque | must be in Nm (newton-metre). |
proto external void VehicleWheeledSimulation_SA_B.EngineStart | ( | ) |
Starts the engine.
proto external void VehicleWheeledSimulation_SA_B.EngineStop | ( | ) |
Stops the engine.
proto external int VehicleWheeledSimulation_SA_B.GearboxForwardGearsCount | ( | ) |
Returns number of forward gears.
proto external int VehicleWheeledSimulation_SA_B.GearboxGearsCount | ( | ) |
Returns number of all gear ratios (neutral included).
proto external float VehicleWheeledSimulation_SA_B.GearboxGetEfficiency | ( | ) |
Returns initial gearbox efficiency.
proto external float VehicleWheeledSimulation_SA_B.GearboxGetEfficiencyState | ( | ) |
Returns current gearbox efficiency.
proto external void VehicleWheeledSimulation_SA_B.GearboxSetEfficiencyState | ( | float | efficiency | ) |
Sets current gearbox efficiency.
proto external float VehicleWheeledSimulation_SA_B.GetBrake | ( | ) |
Returns current brake input in range < 0, 1 >
proto external float VehicleWheeledSimulation_SA_B.GetClutch | ( | ) |
Returns current clutch value in range < 0, 1 > 0 .
. clutch disengaged 1 .. clutch fully engaged
proto external int VehicleWheeledSimulation_SA_B.GetGear | ( | ) |
Returns index of currently engaged gear.
proto external float VehicleWheeledSimulation_SA_B.GetNoiseSteerSensitivity | ( | ) |
Returns sensitivity against noise steer value of surface in range < 0, 1 >
proto external float VehicleWheeledSimulation_SA_B.GetRoughnessSensitivity | ( | ) |
Returns sensitivity against roughness value of surface in range < 0, 1 >
proto external float VehicleWheeledSimulation_SA_B.GetSpeedKmh | ( | ) |
Returns current vehicle speed in km/h (kilometers per hour).
proto external float VehicleWheeledSimulation_SA_B.GetSteering | ( | ) |
Returns current steering input in range < -1, 1 >
proto external float VehicleWheeledSimulation_SA_B.GetThrottle | ( | ) |
returns current throttle input in range < 0, 1 >
proto external bool VehicleWheeledSimulation_SA_B.IsHandbrakeOn | ( | ) |
Returns whether handbrake is currently applied.
proto external void VehicleWheeledSimulation_SA_B.SetBreak | ( | float | in, |
bool | hb | ||
) |
Sets brake inputs.
in | should be in range < 0, 1 > |
hb | indicating whether handbrake should be applied |
proto external void VehicleWheeledSimulation_SA_B.SetClutch | ( | float | in | ) |
Sets the clutch input.
in | should be in range < 0, 1 > |
proto external void VehicleWheeledSimulation_SA_B.SetGear | ( | int | in | ) |
Switches to given gear.
proto external void VehicleWheeledSimulation_SA_B.SetNoiseSteerSensitivity | ( | float | newValue | ) |
Sets sensitivity on noise steer.
newValue | should be in range < 0, 1 > |
proto external void VehicleWheeledSimulation_SA_B.SetRoughnessSensitivity | ( | float | newValue | ) |
Sets sensitivity on roughness value of surface.
newValue | should be in range < 0, 1 > |
proto external void VehicleWheeledSimulation_SA_B.SetSteering | ( | float | in | ) |
Sets steering input.
in | should be in range < -1, 1 > |
proto external void VehicleWheeledSimulation_SA_B.SetThrottle | ( | float | in | ) |
Sets throttle input.
in | should be in range < 0, 1 > |
proto external int VehicleWheeledSimulation_SA_B.WheelCount | ( | ) |
Returns number of wheels.
proto external IEntity VehicleWheeledSimulation_SA_B.WheelGetContactEntity | ( | int | wheelIdx | ) |
Returns entity which is in contact with wheel.
proto external GameMaterial VehicleWheeledSimulation_SA_B.WheelGetContactLiquidMaterial | ( | int | wheelIdx | ) |
Returns the material of the liquid which the wheel is in contact.
proto external vector VehicleWheeledSimulation_SA_B.WheelGetContactLiquidPosition | ( | int | wheelIdx | ) |
Returns the position where the wheel touches a liquid surface.
proto external EWheelContactLiquidState VehicleWheeledSimulation_SA_B.WheelGetContactLiquidState | ( | int | wheelIdx | ) |
Returns whether and how is wheel in contact with some liquid.
proto external GameMaterial VehicleWheeledSimulation_SA_B.WheelGetContactMaterial | ( | int | wheelIdx | ) |
Returns wheel contact material.
proto external vector VehicleWheeledSimulation_SA_B.WheelGetContactNormal | ( | int | wheelIdx | ) |
Returns wheel contact normal.
proto external vector VehicleWheeledSimulation_SA_B.WheelGetContactPosition | ( | int | wheelIdx | ) |
Returns wheel contact position in world space.
proto external int VehicleWheeledSimulation_SA_B.WheelGetIndex | ( | string | name | ) |
Returns stored index of the wheel based on its name.
proto external float VehicleWheeledSimulation_SA_B.WheelGetLateralSlip | ( | int | wheelIdx | ) |
Returns lateral slip of tyre.
proto external float VehicleWheeledSimulation_SA_B.WheelGetLongitudinalSlip | ( | int | wheelIdx | ) |
Returns longitudinal slip of tyre.
proto external float VehicleWheeledSimulation_SA_B.WheelGetMass | ( | int | wheelIdx | ) |
Returns initial wheel's mass.
proto external float VehicleWheeledSimulation_SA_B.WheelGetMassState | ( | int | wheelIdx | ) |
Returns current wheel's mass.
proto external string VehicleWheeledSimulation_SA_B.WheelGetName | ( | int | wheelIdx | ) |
Returns name of the wheel based on its index.
proto external vector VehicleWheeledSimulation_SA_B.WheelGetPosition | ( | int | wheelIdx, |
float | displacement = 0.0 |
||
) |
Get the wheel position based on suspension.
wheelIdx | Index of the wheel |
displacement | 0 means the position of the wheel when the suspension is fully extended ( zero g ). |
proto external float VehicleWheeledSimulation_SA_B.WheelGetRadius | ( | int | wheelIdx | ) |
Returns initial wheel's radius.
proto external float VehicleWheeledSimulation_SA_B.WheelGetRadiusState | ( | int | wheelIdx | ) |
Returns current wheel's radius.
proto external float VehicleWheeledSimulation_SA_B.WheelGetRollingDrag | ( | int | wheelIdx | ) |
Returns current wheel's rolling drag percentage.
proto external float VehicleWheeledSimulation_SA_B.WheelGetRPM | ( | int | wheelIdx | ) |
Returns current wheel's RPM.
proto external bool VehicleWheeledSimulation_SA_B.WheelHasContact | ( | int | wheelIdx | ) |
Returns true if wheel has contact with ground or other object.
proto external float VehicleWheeledSimulation_SA_B.WheelSetMassState | ( | int | wheelIdx, |
float | mass | ||
) |
Sets current wheel's mass.
proto external float VehicleWheeledSimulation_SA_B.WheelSetRadiusState | ( | int | wheelIdx, |
float | radius | ||
) |
Sets current wheel's radius.
proto external void VehicleWheeledSimulation_SA_B.WheelSetRollingDrag | ( | int | wheelIdx, |
float | drag | ||
) |
Sets current rolling drag percentage.
proto external float VehicleWheeledSimulation_SA_B.WheelTyreGetLateralFriction | ( | int | wheelIdx | ) |
Returns tyre's initial lateral friction.
proto external float VehicleWheeledSimulation_SA_B.WheelTyreGetLateralFrictionState | ( | int | wheelIdx | ) |
Returns tyre's current lateral friction.
proto external float VehicleWheeledSimulation_SA_B.WheelTyreGetLongitudinalFriction | ( | int | wheelIdx | ) |
Returns tyre's initial longitudinal friction.
proto external float VehicleWheeledSimulation_SA_B.WheelTyreGetLongitudinalFrictionState | ( | int | wheelIdx | ) |
Returns tyre's current longitudinal friction.
proto external float VehicleWheeledSimulation_SA_B.WheelTyreGetRoughness | ( | int | wheelIdx | ) |
Returns initial roughness of wheel's tyre surface.
proto external float VehicleWheeledSimulation_SA_B.WheelTyreGetRoughnessState | ( | int | wheelIdx | ) |
Returns current roughness of wheel's tyre surface.
proto external void VehicleWheeledSimulation_SA_B.WheelTyreSetLateralFrictionState | ( | int | wheelIdx, |
float | latFriction | ||
) |
Sets tyre's current lateral friction.
proto external void VehicleWheeledSimulation_SA_B.WheelTyreSetLongitudinalFrictionState | ( | int | wheelIdx, |
float | lngFriction | ||
) |
Sets tyre's current longitudinal friction.
proto external void VehicleWheeledSimulation_SA_B.WheelTyreSetRoughnessState | ( | int | wheelIdx, |
float | roughness | ||
) |
Sets current roughness of wheel's tyre surface.