Add llGetStatus to lslextrafuncs.

This commit is contained in:
Sei Lisa 2017-10-20 09:58:49 +02:00
parent 3164a28c9b
commit 36e336beee

View file

@ -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.