EnableTerrainCommand

Extends: ESCBaseCommand < Resource

Description

enable_terrain node_name

Enables the ESCTerrain’s NavigationPolygonInstance specified by the given node name. It will also disable the previously-activated NavigationPolygonInstance. Use this to change where the player can walk, allowing them to walk into the next room once a door has been opened, for example.

Parameters

  • node_name: Name of the NavigationPolygonInstance node to activate

@ESC

Method Descriptions

configure

func configure() -> ESCCommandArgumentDescriptor

Return the descriptor of the arguments of this command

run

func run(command_params: Array) -> int

Run the command

interrupt

func interrupt()

Function called when the command is interrupted.