Difference between revisions of "LlEdgeOfWorld"
Jump to navigation
Jump to search
m |
|||
Line 34: | Line 34: | ||
</lsl> | </lsl> | ||
|helpers | |helpers | ||
|also_constants= | |||
{{LSL DefineRow||[[STATUS_DIE_AT_EDGE]]}} | |||
{{LSL DefineRow||[[STATUS_RETURN_AT_EDGE]]}} | |||
|also_functions | |also_functions | ||
|also_events | |also_events | ||
Line 42: | Line 45: | ||
|negative_index | |negative_index | ||
|cat1=Region | |cat1=Region | ||
|cat2 | |cat2=World Edge | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 03:25, 24 May 2009
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llEdgeOfWorld( vector pos, vector dir );205 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Checks to see whether the border hit by dir from pos is the edge of the world (has no neighboring simulator)
Returns an integer that is a boolean.
• vector | pos | |||
• vector | dir |
Caveats
Examples
<lsl> //--// Tells if there are neighboring sims on touch //--//
default{
touch_start( integer vIntTouched ){ vector vPosObject = llGetPos(); if (!llEdgeOfWorld( vPosObject, <0.0, 1.0, 0.0> )){ llOwnerSay( "There is a Sim to the North" ); } if (!llEdgeOfWorld( vPosObject, <1.0, 0.0, 0.0> )){ llOwnerSay( "There is a Sim to the East" ); } if (!llEdgeOfWorld( vPosObject, <0.0, -1.0, 0.0> )){ llOwnerSay( "There is a Sim to the South" ); } if (!llEdgeOfWorld( vPosObject, <-1.0, 0.0, 0.0> )){ llOwnerSay( "There is a Sim to the West" ); } }
}
</lsl>See Also
Constants
• | STATUS_DIE_AT_EDGE | |||
• | STATUS_RETURN_AT_EDGE |