get Position
Get the current world position of the Agent.
agent.getPosition()
Returns
- the current world position of the Agent.
Example
Display the Agent’s world position with a chat command called "myagent"
.
player.onChat("myagent", function () {
player.say("My Agent's position is: " + agent.getPosition());
});