Difference between revisions of "HPL3/Amnesia: Rebirth/Scripting/Scripting Api/Wheel"

From Frictional Wiki
Jump to navigation Jump to search
(Created page with "{{ScriptingStub}} Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki! ==Summary== {{CodeDocSummaryTop}} {{CodeDocSummaryIte...")
 
(No difference)

Latest revision as of 01:08, 16 November 2020

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

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

Returns:

  • float—float, angle in radians

Wheel_GetState

int Wheel_GetState(const tString &in asName)

Gets the state of the wheel

Parameters

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