Skip to content
aubergine10 edited this page Nov 23, 2015 · 2 revisions

##Overview

Make an Entity travel to a given location.

##Syntax

--set:
someEntity.NavigateTo( <x>, <y> )

--get:
local currentDest = someEntity.Dest -- {x,y} | nil

--clear:
someEntity.ClearRouting()

Where <x> and <y> are numbers defining a map location.

##Example

##Notes

The destination specified must be accessible to the entity:

  • It must be valid location on the map (ie. not outside the map)
  • see [Location table](Location table) for details on map dimensions
  • The map tile must not contain a blocking object or material
  • see BlockedBy and BlockMovement for details

##See Also

^ Open "Pages" to Search



Guides:

  • [Lua Basics](Lua Basics Guide)
  • [Save-Load Cycle](Save-Load Cycle Guide)

[Globals](Object Globals):

  • [Game](Game (Global))
  • [me](me (Global))
  • [Object](Object (Global))
  • [this](this (Global))

[Events](Object Events):

Psuedo-Types:

  • [Rotation table](Rotation table)
  • [Id table](Id table)
  • [Location table](Location table)
  • [Velocity table](Velocity table)

[Methods](Object Methods):

[Properties](Object Properties):

Clone this wiki locally