User Tools

Site Tools


replace_navigation

This is an old revision of the document!


Replace Navigation


Replaces one navigation/interaction type with another for any navigation paths that are connected to the specified tile or object. The acceptable values for navigation type are described below:

  • WALK_AND_INTERACT: Characters can both walk and interact between the tiles.
  • WALK_ONLY: Characters can only walk between the tiles (no interaction is allowed).
  • INTERACT_ONLY: Characters can only interact between the tiles (no walking is allowed).
  • PENDING: Characters cannot walk or interact between the tiles, but a connection is maintained. (This is in support of some future functionality.)
  • NONE: Characters cannot walk or interact between the tiles.
replace_navigation(entity, navigation_type, new_navigation_type)
ArgumentDescriptionTypeRequired
first_tile_idID of the first tile.StringYes
second_tile_idID of the second tile.StringYes
navigation_typeNavigation type to set between the two tiles.ConstantYes

Example:

replace_navigation("tile01", PENDING, WALK_AND_INTERACT)

Results: Characters are now able to walk and interact between the tiles with IDs of “tile01” and “tile02”.

Use the Modify Navigation/Interaction function to open up new routes for the player to travel through, for example when a door is opened or a blocking object has been removed from a tile.


Editor Node:

Visual Demo:

replace_navigation.1497146797.txt.gz · Last modified: 2017/06/10 19:06 by justin