— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
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:
replace_navigation(entity, navigation_type, new_navigation_type)
Argument | Description | Type | Required |
---|---|---|---|
entity | Tile or object to replace navigation to/from. | Entity | Yes |
navigation_type | Existing navigation type that will be replaced. | Constant | Yes |
new_navigation_type | New navigation type to replace the existing type with. | Constant | Yes |
See Modify Navigation if you'd like to only change the navigation type between specific tiles.
replace_navigation(self, INTERACT_ONLY, WALK_AND_INTERACT)
Results: Any navigation paths in each of the four cardinal directions from the entity that this script is attached to that currently have a type of INTERACT_ONLY will be changed to WALK_AND_INTERACT.
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 to enable characters to pass through.