This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
modify_navigation [2017/04/17 21:27] – justin | modify_navigation [2020/04/21 14:31] – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Modify Navigation/ | + | ======Modify Navigation====== |
---- | ---- | ||
- | Modifies the type of navigation and interaction allowed between two adjacent tiles. The acceptable navigation | + | Modifies the type of navigation and interaction allowed between two adjacent tiles. The acceptable |
- | * **// | + | |
- | * **// | + | |
- | * **// | + | |
- | * **// | + | |
- | * **// | + | |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | modify_navigation(first_tile_id, second_tile_id, navigation_mode) | + | modify_navigation(from_tile, to_tile, navigation_type) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |first_tile_id|ID of the first tile.|[[String]]|Yes| | + | |from_tile|Tile to connect navigation from.|[[Entity]]|Yes| |
- | |second_tile_id|ID of the second tile.|[[String]]|Yes| | + | |to_tile|Tile to connect navigation to.|[[Entity]]|Yes| |
- | |navigation_mode|Navigation | + | |navigation_type|Navigation |
+ | |||
+ | <WRAP center round info 100%> | ||
+ | See [[Replace Navigation]] if you'd like to update any navigation paths of a specific type relative to an entity instead of only between two adjacent tiles. | ||
+ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
modify_navigation(" | modify_navigation(" | ||
</ | </ | ||
Line 25: | Line 25: | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Modify Navigation/ | + | Use the **Modify Navigation** function to open up new routes for the player to travel through, for example when a door is opened or a blocking object has been removed from a tile. |
</ | </ | ||