Difference between revisions of "LlTeleportAgentHome"

From Second Life Wiki
Jump to navigation Jump to search
Line 10: Line 10:
|caveats
|caveats
|constants
|constants
|examples
|examples=<pre>
// 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
}
}
</pre>
|helpers
|helpers
|also_functions
|also_functions

Revision as of 18:38, 11 October 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

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 );