This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
replace_navigation [2017/06/11 12:29] – justin | replace_navigation [2020/05/25 08:57] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Replaces one navigation/ | + | Replaces one navigation type with another for any navigation paths that are connected to the specified |
- | * **// | + | |
- | * **// | + | |
- | * **// | + | |
- | * **// | + | |
- | * **// | + | |
+ | ====Signature: | ||
<code python> | <code python> | ||
replace_navigation(entity, | replace_navigation(entity, | ||
Line 14: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |entity|Tile or object | + | |entity|Entity |
- | |navigation_type|Existing navigation type that will be replaced.|[[Constant]]|Yes| | + | |navigation_type|Existing navigation type that will be replaced.|[[navigation_and_interaction|Navigation Type]]|Yes| |
- | |new_navigation_type|New navigation type to replace the existing type with.|[[Constant]]|Yes| | + | |new_navigation_type|New navigation type to replace the existing type with.|[[navigation_and_interaction|Navigation Type]]|Yes| |
+ | |||
+ | <WRAP center round info 100%> | ||
+ | See [[Modify Navigation]] if you'd like to only change the navigation type between two specific [[tile|tiles]] instead of any [[tile|tiles]] relative to an [[entity]]. | ||
+ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
replace_navigation(self, | replace_navigation(self, | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | 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. | + | Use the **Replace Navigation** function to easily update the navigation for any [[tile|tiles]] surrounding an obstacle that has been removed or a door that has been opened |
</ | </ | ||