Difference between revisions of "LlTeleportAgentHome"

From Second Life Wiki
Jump to navigation Jump to search
(Object owner must be land owner. If land is deeded to group, object must be deeded to same group)
Line 7: Line 7:
|p1_name=agent
|p1_name=agent
|func_desc=Teleports '''agent''' on owner's land to their home location without any warning, similar to a [[God Summon]] or dieing.
|func_desc=Teleports '''agent''' on owner's land to their home location without any warning, similar to a [[God Summon]] or dieing.
|func_footnote=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
|spec
|spec
|caveats
|caveats

Revision as of 03:00, 13 December 2007

Summary

Function: llTeleportAgentHome( key agent );

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.
All Issues ~ Search JIRA for related Bugs

Examples

// 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
	}
}

Deep Notes

Search JIRA for related Issues

Signature

function void llTeleportAgentHome( key agent );