HPL3/SOMA/Scripting/Scripting Api/Entity

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting‎ | Scripting Api
Revision as of 02:24, 11 August 2020 by Abion47 (talk | contribs)
Jump to navigation Jump to search


Return Type Function and Description
bool Entity_GetAutoSleep(const tString &in asName)
Get if an entity automatically falls asleep when it isnt active
void Entity_SetIsOccluder(const tString &in asName, bool abOccluder)
Set if entity is an occluder
bool Entity_IsOccluder(const tString &in asName)
Get if an entity is an occluder
bool Entity_IsInteractedWith(const tString &in asName)
Checks if the entity is being interacted with.
void Entity_SetVarString(const tString &in asName, const tString &in asVarName, const tString &in asX)
Sets the value of an entity string variable. Wildcard(s) * are supported for EntityName.

Entity_GetAutoSleep

bool Entity_GetAutoSleep(const tString &in asName)

Get if an entity automatically falls asleep when it isnt active

Parameters

  • asName (const tString &in) — Name of the entity.

Returns:

  • bool — if sleeping or not.


Entity_SetIsOccluder

Set if entity is an occluder

void Entity_SetIsOccluder(const tString &in asName,
                          bool abOccluder)

Parameters

  • asName (const tString &in) — Name of the entity, Wildcard(s) * are supported *
  • abOccluder (bool) — true = object is occluder

Returns:

  • void

Entity_IsOccluder

Get if an entity is an occluder

bool Entity_IsOccluder(const tString &in asName)

Parameters

  • asName (const tString &in) — Name of the entity.

Returns:

  • bool — if entity is an occluder

Entity_IsInteractedWith

Checks if the entity is being interacted with.

bool Entity_IsInteractedWith(const tString &in asName)

Parameters

  • asName (const tString &in) — name of the entity.

Returns:

  • bool — if the entity is being interacted with

Entity_SetVarString

Sets the value of an entity string variable. Wildcard(s) * are supported for EntityName. *

void Entity_SetVarString(const tString &in asEntityName,
                         const tString &in asVarName,
                         const tString &in asX)

Parameters

  • asEntityName (const tString &in)
  • asVarName (const tString &in)
  • asX (const tString &in)

Returns:

  • void