Skip to content

Type Alias: TXR_game_object_path

ts
type TXR_game_object_path = 
  | typeof game_path
  | typeof level_path
  | typeof patrol_path
  | typeof no_path;

Movement path type accepted by game_object.set_path_type() and returned by game_object.path_type().

Source

src/xrGame/script_game_object_script2.cpp, game_object.EPathType enum.

Remarks

The Lua binding exposes only the four named MovementManager::EPathType values. When mirroring these values in a TypeScript enum, use literal numeric initializers (0, 1, 2, 3) instead of runtime game_object lookups.