Difference between revisions of "LlGetRegionName"
Jump to navigation
Jump to search
(EX) |
|||
Line 9: | Line 9: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples | |examples=<pre> | ||
// Put this script into a bracelet for a simple reminder. | |||
default | |||
{ | |||
state_entry() | |||
{ | |||
llSetTimerEvent(3.0); | |||
} | |||
timer() | |||
{ | |||
if(llGetRegionName() == "The Wild") | |||
{ | |||
llInstantMessage(llGetOwner(), "Entered Enemy Area!"); | |||
} | |||
} | |||
} | |||
</pre> | |||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llGetSimulatorHostname]]|}} | |also_functions={{LSL DefineRow||[[llGetSimulatorHostname]]|}} |
Revision as of 15:21, 17 May 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: string llGetRegionName( );226 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a string that is the current region name
Caveats
Examples
// Put this script into a bracelet for a simple reminder. default { state_entry() { llSetTimerEvent(3.0); } timer() { if(llGetRegionName() == "The Wild") { llInstantMessage(llGetOwner(), "Entered Enemy Area!"); } } }
See Also
Functions
• | llGetSimulatorHostname |