Add llGetStatus to lslextrafuncs.
This commit is contained in:
@@ -244,7 +244,7 @@ def llGetColor(face):
|
||||
face = fi(face)
|
||||
if face > 8:
|
||||
return Vector((1.,1.,1.))
|
||||
# Returns face 0 when negative (can't be computed)
|
||||
# Returns the average colour when negative (can't be computed)
|
||||
raise ELSLCantCompute
|
||||
|
||||
def llGetDisplayName(id):
|
||||
@@ -310,4 +310,10 @@ def llGetOwnerKey(id):
|
||||
return Key(NULL_KEY)
|
||||
raise ELSLCantCompute
|
||||
|
||||
def llGetStatus(mask):
|
||||
# leave out STATUS_DIE_AT_EDGE and STATUS_CAST_SHADOWS
|
||||
if (mask & 0b10101111111) == 0:
|
||||
return 0
|
||||
raise ELSLCantCompute
|
||||
|
||||
# TODO: Add more predictable functions.
|
||||
|
||||
Reference in New Issue
Block a user