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
key osGetInventoryLastOwner(string itemNameOrId)
void osNpcSit(key npc, key target, integer options)
void osRegionNotice(key agentID, string msg)
string osGetNotecard(string name)
void osNpcTouch(key npcLSL_Key, key object_key, integer link_num)
integer osReplaceRegionEnvironment(integer transition, string daycycle, float daylen, float dayoffset, float altitude1, float altitude2, float altitude3)
float osGetCurrentSunHour()
string osSetDynamicTextureDataFace(string dynamicID, string contentType, string data, string extraParams, integer timer, integer face)