This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
replace_navigation [2017/06/11 12:07] – justin | replace_navigation [2021/04/21 18:42] (current) – 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: |
- | replace_navigation(self, navigation_type, | + | < |
+ | replace_navigation(entity, navigation_type, | ||
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |entity|ID of the first tile.|[[Entity]]|Yes| | + | |entity|Entity to replace navigation to/from.|[[Entity]], [[groups|Group]]|Yes| |
- | |navigation_type|ID of the second tile.|[[Constant]]|Yes| | + | |navigation_type|Existing navigation type that will be replaced.|[[navigation_and_interaction|Navigation Type]]|Yes| |
- | |new_navigation_type|Navigation | + | |new_navigation_type|New navigation |
+ | |||
+ | <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(" | + | replace_navigation(self, INTERACT_ONLY, WALK_AND_INTERACT); |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Replace Navigation** function to . | + | 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 to enable [[character|characters]] to pass through. |
</ | </ | ||