mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Add llGetStatus to lslextrafuncs.
This commit is contained in:
parent
3164a28c9b
commit
36e336beee
1 changed files with 7 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue