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 17:38, 11 October 2007

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

Caveats

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

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

Signature

function void llTeleportAgentHome( key agent );