LlTeleportAgentHome: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
<lsl> example
Strife Onizuka (talk | contribs)
mNo edit summary
Line 33: Line 33:
|cat2=Security
|cat2=Security
|cat3=Avatar
|cat3=Avatar
|cat4
|cat4=Teleport
|}}
|}}

Revision as of 16:31, 10 June 2008

Summary

Function: llTeleportAgentHome( key agent );
5.0 Forced Delay
100.0 Energy

Teleports agent on owner's land to their home location without any warning, similar to a God Summon or dieing.

• key agent

The object owner must also be the land owner. If the land is deeded to a group the object will need to be deeded to the same group for this function to work

Caveats

  • This function causes the script to sleep for 5.0 seconds.

Examples

<lsl>// by Cory Bjornson

default { state_entry() { llSetText("Don't touch me!", <1,0,0>, 5.0); } touch_start(integer total_number) { llTeleportAgentHome(llDetectedKey(0)); // Teleports the Agent home }

}</lsl>

Deep Notes

Signature

function void llTeleportAgentHome( key agent );