osTeleportAgent
OSSLvoid osTeleportAgent(string agent, vector position, vector lookat)
Teleports an agent to the specified location
Parameters
| Type | Name | What it does |
|---|---|---|
| string | agent | The avatar. |
| vector | position | Where to land, region metres. |
| vector | lookat | Which way to face. |
Example
default
{
touch_start(integer n)
{
osTeleportAgent(llDetectedKey(0), "Wolf Mountain", <128, 128, 30>, <1, 0, 0>);
}
}
Energy
10
OpenSimulator extensions. Some are gated by threat level and a region may refuse them.
More in OSSL
void osForceAttachToAvatarFromInventory(string itemName, integer attachment)
integer osRegionRestart(float seconds, string msg)
integer osListenRegex(integer channelID, string name, string ID, string msg, integer regexBitfield)
vector osGetSitTargetPos()
integer osRegexIsMatch(string input, string pattern)
string osMovePen(string drawList, integer x, integer y)
integer osInviteToGroup(key agentId)
float osVecDistSquare(vector a, vector b)