ScarDoc

Start typing to search the SCAR reference.

Function
Context

Context_ExtractInfoFromContext

Get the position, direction, and proximity of the context provided (expects Context table format)

On this page
Context_ExtractInfoFromContext(context with the Context format (see context_selection.scar))

Description

Will return nil for any data that is not found on the context. For example, entities do not have a proximity.

Parameters

  • context with the Context format (see context_selection.scar)Tablerequired

Returns

ST_SCARPOSST_SCARPOS position, ST_SCARPOS direction, Number proximity

Source

Declared in the game's script sources at:

scar/context_selection.scar