HPL3/Amnesia: Rebirth/Scripting/cLuxProximitySensor

From Frictional Wiki
< HPL3‎ | Amnesia: Rebirth‎ | Scripting
Revision as of 22:36, 15 November 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! ==Fields== cLuxProximitySensor has no public fields....")
(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!

Fields

cLuxProximitySensor has no public fields.

Functions

Return Type Function And Description
void AddState(int alId, float afEnterDistance, float afLeaveDistance, bool abLineOfSightCheck, bool abPlayerDetectedCheck)
iLuxEntity GetEntity()
bool GetPlayerInsideState(int alId)
bool GetStateActive(int alId)
int GetType()
void ResetAllStates()
void ResetState(int alId)
void SetStateActive(int alId, bool abX)

Details

AddState

void AddState(int alId,
              float afEnterDistance,
              float afLeaveDistance,
              bool abLineOfSightCheck,
              bool abPlayerDetectedCheck)


Parameters

  • alId (int) —
  • afEnterDistance (float) —
  • afLeaveDistance (float) —
  • abLineOfSightCheck (bool) —
  • abPlayerDetectedCheck (bool) —

Returns:

  • void

GetEntity

iLuxEntity@ GetEntity()

Returns:

  • iLuxEntity@

GetPlayerInsideState

bool GetPlayerInsideState(int alId)


Parameters

  • alId (int) —

Returns:

  • bool

GetStateActive

bool GetStateActive(int alId)


Parameters

  • alId (int) —

Returns:

  • bool

GetType

int GetType()

Returns:

  • int

ResetAllStates

void ResetAllStates()

Returns:

  • void

ResetState

void ResetState(int alId)


Parameters

  • alId (int) —

Returns:

  • void

SetStateActive

void SetStateActive(int alId,
                    bool abX)


Parameters

  • alId (int) —
  • abX (bool) —

Returns:

  • void

References

See all references...