walkHeroTo
walkHeroTo(
world,destination,hero?):Vector3[]
Defined in: packages/engine/src/gameplay/hero/actions.ts:76
Sends her walking to destination round whatever the navmesh was baked
with, dropping wherever she was walking before.
An end the mesh cannot snap a polygon onto answers no corners at all, and she keeps doing what she was: a point past the meadow’s eroded border, or up the bank the bake leaves out, is a click that sets nothing rather than a failure. An end that snaps with no route to it answers the corners as far as they go, and she walks those and stops, which is the nearest she can get to what was asked for.
The hero sent is this side’s player’s unless one is named, as a room names each player’s own.
Returns the corners she was sent along, none where she was not.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
destination |
Vector3 |
hero |
Entity | undefined |
Returns
Section titled “Returns”Vector3[]