Interactable
Something the player can interact with - see BGE.Interactables.
Properties
entity(BGE.GameEntity)id(string)label(string) — Shown in the prompt, e.g. "Talk to Bram".enabled(boolean) — A disabled interactable is never picked.radius(float) — Its body radius in world units, so it counts as soon as its edge is in reach (arcs only).data(dynamic) — Anything else the game wants to keep with it (a story node, a shop id...).
Constructor
new Interactable(
entity: BGE.GameEntity,
id: string,
label: string,
data: dynamic,
): InteractableParameters
entity(BGE.GameEntity)id(string)label(string)data(dynamic)