HPL3/SOMA/Scripting/Scripting Api/MoveObject

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting‎ | Scripting Api
Revision as of 21:57, 24 August 2020 by Abion47 (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
void MoveObject_SetState(const tString &in asName, float afState)
Sets the state of the move object
void MoveObject_SetStateExt(const tString &in asName, float afState, float afAcc, float afMaxSpeed, float afSlowdownDist, bool abResetSpeed)
Sets the state of the move object

Function Detail

MoveObject_SetState

void MoveObject_SetState(const tString &in asName,
                         float afState)

Sets the state of the move object. This makes it move to a certain postion between
min or max pos (or outside of that is <0 or >1).

Parameters

  • asName (tString) — name of move object
  • afState (float) — true = locked - false = unlocked.

Returns:

  • void

MoveObject_SetStateExt

void MoveObject_SetStateExt(const tString &in asName,
                            float afState,
                            float afAcc,
                            float afMaxSpeed,
                            float afSlowdownDist,
                            bool abResetSpeed)

Sets the state of the move object. This makes it move to a certain postion between
min or max pos (or outside of that is <0 or >1).
This will also set the speeed and acc at which the movement occurs.

Parameters

  • asName (tString) — name of move object
  • afState (float) — true = locked - false = unlocked.
  • afAcc (float) — the acceleration of the movement
  • afMaxSpeed (float) — the max speed.
  • afSlowdownDist (float) — the distance from the state postion that it will start slowing to a halt.
  • abResetSpeed (bool) — if the previous speed should be reset.

Returns:

  • void