What it does
Moves the scene entity with this id or name to a new position.
Syntax
EntityPosition(entity string, x float, y float, z float)Parameters
| Name | Type | Meaning |
|---|---|---|
| entity | string | The entity's id, name or tag. It must match exactly one entity. |
| x | float | The new x coordinate. |
| y | float | The new y coordinate. |
| z | float | The new z coordinate. |
Every form returns
nothing
Good to know
- When the name matches no entity or several, nothing moves and one warning is written to the console, once per name.
- An entity with a physics body has its body moved along with it.
Example · generated
EntityPosition("value", 100.0, 120.0, 100.0)DO Sync()LOOPEntityPosition is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.