This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
replace_navigation [2017/06/10 19:06] – justin | replace_navigation [2018/03/16 09:47] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Replaces one navigation/ | + | Replaces one navigation type with another for any navigation paths that are connected to the specified tile or object. The acceptable values for navigation type are listed |
- | * **// | + | |
- | * **// | + | |
- | * **// | + | |
- | * **// | + | |
- | * **// | + | |
+ | ====Signature: | ||
<code python> | <code python> | ||
replace_navigation(entity, | replace_navigation(entity, | ||
Line 14: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |first_tile_id|ID of the first tile.|[[String]]|Yes| | + | |entity|Tile or object to replace navigation to/from.|[[Entity]]|Yes| |
- | |second_tile_id|ID of the second tile.|[[String]]|Yes| | + | |navigation_type|Existing navigation type that will be replaced.|[[navigation_and_interaction|Navigation Type]]|Yes| |
- | |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 tiles instead of any 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 **Modify | + | Use the **Replace |
</ | </ | ||
Line 33: | Line 33: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki:modify_navigation_node.png? | + | {{:wiki:replace_navigation_node.png? |
</ | </ | ||
<WRAP half column> | <WRAP half column> | ||
====Visual Demo:==== | ====Visual Demo:==== | ||
- | {{:wiki:modify_navigation_demo.gif? | + | {{:wiki:replace_navigation_demo.gif? |
</ | </ | ||
</ | </ |