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
entityTile or object to replace navigation to/from.EntityYes
navigation_typeExisting navigation type that will be replaced.ConstantYes
new_navigation_typeNew navigation type to replace the existing type with.ConstantYes

Example:

replace_navigation(self, INTERACT_ONLY, WALK_AND_INTERACT)

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

Use the Replace Navigation function to easily update the navigation for any tiles surrounding an obstacle that has been removed or a door that has been opened.


Editor Node:

Visual Demo:

replace_navigation.1497209342.txt.gz · Last modified: 2017/06/11 12:29 by justin