HPL3/Amnesia: Rebirth/Scripting/Scripting Api/Wheel
< HPL3 | Amnesia: Rebirth | Scripting | Scripting Api
Jump to navigation
Jump to search
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
Summary
Return Type | Function and Description |
---|---|
float | Wheel_GetCurrentAngle(const tString &in asName) Gets the angle of a wheel |
int | Wheel_GetState(const tString &in asName) Gets the state of the wheel |
void | Wheel_SetAngle(const tString &in asName, float afAngle, bool abAutoMove) Sets the angle of a wheel |
void | Wheel_SetInteractionDisablesStuck(const tString &in asName, bool abX) Sets if player interaction will disable the stuck state of a wheel |
void | Wheel_SetStuckState(const tString &in asName, int alState, bool abEffects) Sets the stuck state of a wheel |
Function Detail
Wheel_GetCurrentAngle
float Wheel_GetCurrentAngle(const tString &in asName)
Gets the angle of a wheel.
Parameters
- asName (tString) —
Returns:
- float—float, angle in radians
Wheel_GetState
int Wheel_GetState(const tString &in asName)
Gets the state of the wheel
Parameters
- asName (tString) —
Returns:
- int—int, -1 = min, 0 = middle, 1 = max
Wheel_SetAngle
void Wheel_SetAngle(const tString &in asName,
float afAngle,
bool abAutoMove)
Sets the angle of a wheel.
Parameters
- asName (tString) —
- afAngle (float) —
- abAutoMove (bool) —
Returns:
- void
Wheel_SetInteractionDisablesStuck
void Wheel_SetInteractionDisablesStuck(const tString &in asName,
bool abX)
Sets if player interaction will disable the stuck state of a wheel.
effect on stuck state.
Parameters
- asName (tString) —
- abX (bool) —
Returns:
- void
Wheel_SetStuckState
void Wheel_SetStuckState(const tString &in asName,
int alState,
bool abEffects)
Sets the stuck state of a wheel.
the change will not be apparent to the player.
Parameters
- asName (tString) —
- alState (int) —
- abEffects (bool) —
Returns:
- void