Binding of RoR::AeroEngine.
Binding of RoR::Autopilot.
Binding of RoR::Actor; a softbody-physics gameplay object, can be anything from soda can to space shu...
TruckState getTruckState()
float getHeadingDirectionAngle()
Returns the angle in which the truck is heading.
float getNodeMass(int nodeNumber)
Returns the current mass of the node.
float getAirbrakeIntensity()
int getNodeCount()
Gets the total amount of nodes of the truck.
float getRotation()
Returns the angle in which the truck is heading.
void setAirbrakeIntensity(float level)
Sets the air braking level for aircraft, from 0 (no braking) to 5 (maximum braking).
bool isNodeWheelRim(int nodeNumber)
Is node marked as wheel rim? Note some wheel models use only tire nodes.
float getTotalMass(bool withLocked)
Gets the total mass of the truck.
void setNodeMass(int nodeNumber, float mass)
Overrides the node's mass.
bool getReverseLightVisible()
Returns true if the reverse lights are enabled.
vector3 getNodeForces(int nodeNumber)
Returns the sum of all the forces applied to the node.
float getWheelSpeed()
Gets the current wheel speed of the vehicle.
void setMass(float m)
Sets the dry mass of the truck.
void tractioncontrolToggle()
Toggles the tracktion control.
TurbojetClass getTurbojet(int index)
void setForcedCinecam(int cinecamId, int flags)
Sets a forced cinecam for this actor; This disables camera hotkeys.
bool getCustomParticleMode()
Gets the custom particles mode.
void clearForcedCinecam()
Resets the effect of setForcedCinecam();.
void beaconsToggle()
Toggles the beacons.
void scaleTruck(float ratio)
Scales the truck.
VehicleAiClass getVehicleAI()
Retrieve the waypoint AI object.
vector3 getNodeVelocity(int nodeNumber)
Returns the velocity vector of the node.
string getTruckFileResourceGroup()
Gets the name of the OGRE resource group where the truck definition file lives.
int getNumCinecams() const
Reports number of installed cinecams.
void setNodeMassOptions(int nodeNumber, bool loaded, bool overrideMass)
Sets the mass options of the node.
ScrewpropClass getScrewprop(int index)
int getBlinkType()
Gets the blinking type.
string getTruckName()
Gets the designated name of the truck.
void setLoadedMass(float loadMass)
Sets the load mass of the truck.
string getSectionConfig()
Gets the name of the loaded section for a truck.
EngineClassPtr getEngine()
Retrieve engine/transmission simulator.
int getWheelNodeCount()
Gets the total amount of nodes of the wheels of the truck.
void toggleCustomParticles()
Toggles the custom particles.
vector3 getGForces()
Gets the G-forces that this truck is currently experiencing.
bool getCustomLightVisible(int number)
Returns true if the custom light with the number number is enabled.
void setSimAttribute(ActorSimAttr attr, float val)
Allows advanced users to set physics settings directly, including some not accessible from rig-def fi...
void antilockbrakeToggle()
Toggles the anti-lock brakes.
void setAircraftFlaps(int level)
Sets the flaps level for aircraft, from 0 (flaps up) to 5 (flaps fully down).
bool getForcedCinecam(int &inout, int &inout)
Reports the values submitted by setForcedCinecam();.
string getTruckFileName()
Gets the name of the truck definition file.
int getAircraftEngineCount()
float getInitialDryMass()
void getNodeMassOptions(int nodeNumber, bool &loaded, bool &overrideMass)
Returns the mass options of the node.
int countCustomLights(int)
Counts flares using the given custom light group number (1-10).
void setBlinkType(int blink)
Sets the blinking type.
TurbopropClass getTurboprop(int index)
float getSimAttribute(ActorSimAttr attr)
vector3 getNodePosition(int nodeNumber)
Returns the position of the node.
bool getBrakeLightVisible()
Returns true if the brake light is enabled.
DashboardManagerClassPtr getDashboardManager()
Retrieve dashboard manager.
int countFlaresByType(FlareType)
Counts flares using the given type.
float getInitialLoadedMass()
void reset(bool keep_position)
Resets the truck.
AircraftEngineClass getAircraftEngine(int index)
vector3 getPosition()
Get vehicle absolute position.
bool isNodeWheelTire(int nodeNumber)
Is node marked as wheel tire? Note some wheel models use only tire nodes.
quaternion getOrientation() float getSpeed()
Orientation on all axes packed to single quaternion.
int getInstanceId()
Gets the unique Actor Instance ID; The same value as provided by Game2Script::eventCallbackEx().
void recalculateNodeMasses()
Recalculates the masses of all the nodes.
void setCustomLightVisible(int number, bool visible)
Enables or disables the custom light.
bool getBeaconMode()
Gets the mode of the beacon.
vector3 getVehiclePosition()
bool isLocked()
Returns true if a hook of this truck is locked.
float getNodeInitialMass(int nodeNumber)
Returns the initial mass of the node.
void parkingbrakeToggle()
Toggles the parking brake.
AutopilotClass getAutopilot()
Retrieves the autopilot system object, or null if unavailable.
Binding of RoR::Screwprop.
Binding of RoR::Turbojet.
Binding of RoR::Turboprop.
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.
TruckState
Binding of RoR::ActorState.
ActorSimAttr
Parameter to Script2Game::BeamClass::setSimAttribute() and Script2Game::BeamClass::getSimAttribute();...
FlareType
Binding of RoR::FlareType.