Difference between revisions of "LlTeleportAgentHome"
Jump to navigation
Jump to search
Gally Young (talk | contribs) m (fixe) |
(<lsl> example) |
||
Line 11: | Line 11: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples=< | |examples=<lsl>// by Cory Bjornson | ||
// by Cory Bjornson | |||
default | default | ||
Line 24: | Line 23: | ||
llTeleportAgentHome(llDetectedKey(0)); // Teleports the Agent home | llTeleportAgentHome(llDetectedKey(0)); // Teleports the Agent home | ||
} | } | ||
} | }</lsl> | ||
</ | |||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 11:39, 4 March 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llTeleportAgentHome( key agent );158 | Function ID |
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
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>