Difference between revisions of "LlGetParcelFlags"

From Second Life Wiki
Jump to navigation Jump to search
m (Forgot to add this note: Added example ;-))
m
Line 7: Line 7:
|spec
|spec
|caveats
|caveats
|constants={{{!}} {{Prettytable}}
|constants={{{!}} class="sortable" {{Prettytable}}
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
! colspan="2" {{!}} Flag
! colspan="2" {{!}} Flag
! Description
! class="unsortable" {{!}} Description
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_ALLOW_FLY}}
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_FLY|integer|1|hex=0x00000001|c=find if a parcel allows flying}}
{{!}} {{LSL Hex|0x1|1}}
{{!}} {{#var:value}}
{{!}} find if a parcel allows flying
{{!}} {{#var:comment}}
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_ALLOW_SCRIPTS}}
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_SCRIPTS|integer|2|hex=0x00000002|c=find if a parcel allows outside scripts}}
{{!}} {{LSL Hex|0x2|2}}
{{!}} {{#var:value}}
{{!}} find if a parcel allows outside [[script|scripts]]
{{!}} {{#var:comment}}
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_ALLOW_LANDMARK}}
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_LANDMARK|integer|8|hex=0x00000008|c=find if a parcel allows landmarks to be created}}
{{!}} {{LSL Hex|0x8|8}}
{{!}} {{#var:value}}
{{!}} find if a parcel allows [[landmark|landmarks]] to be created
{{!}} {{#var:comment}}
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_ALLOW_TERRAFORM}}
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_TERRAFORM|integer|16|hex=0x00000010|c=find if a parcel allows anyone to terraform the land}}
{{!}} {{LSL Hex|0x10|16}}
{{!}} {{#var:value}}
{{!}} find if a parcel allows anyone to terraform the [[land]]
{{!}} {{#var:comment}}
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_ALLOW_DAMAGE}}
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_DAMAGE|integer|32|hex=0x00000020|c=find if a parcel allows damage}}
{{!}} {{LSL Hex|0x20|32}}
{{!}} {{#var:value}}
{{!}} find if a parcel allows [[damage]]
{{!}} {{#var:comment}}
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_ALLOW_CREATE_OBJECTS}}
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_CREATE_OBJECTS|integer|64|hex=0x00000040|c=find if a parcel allows anyone to create objects}}
{{!}} {{LSL Hex|0x40|64}}
{{!}} {{#var:value}}
{{!}} find if a parcel allows anyone to create [[object|objects]]
{{!}} {{#var:comment}}
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_USE_ACCESS_GROUP}}
{{!}} {{LSL Const|PARCEL_FLAG_USE_ACCESS_GROUP|integer|256|hex=0x00000100|c=find if a parcel limits access to a group}}
{{!}} {{LSL Hex|0x100|256}}
{{!}} {{#var:value}}
{{!}} find if a parcel limits access to a [[group]]
{{!}} {{#var:comment}}
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_USE_ACCESS_LIST}}
{{!}} {{LSL Const|PARCEL_FLAG_USE_ACCESS_LIST|integer|512|hex=0x00000200|c=find if a parcel limits access to a list of residents}}
{{!}} {{LSL Hex|0x200|512}}
{{!}} {{#var:value}}
{{!}} find if a parcel limits access to a list of [[resident|residents]]
{{!}} {{#var:comment}}
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_USE_BAN_LIST}}
{{!}} {{LSL Const|PARCEL_FLAG_USE_BAN_LIST|integer|1024|hex=0x00000400|c=find if a parcel uses a ban list, including restricting access based on payment info}}
{{!}} {{LSL Hex|0x400|1024}}
{{!}} {{#var:value}}
{{!}} find if a parcel uses a ban list, including restricting access based on payment info
{{!}} {{#var:comment}}
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_USE_LAND_PASS_LIST}}
{{!}} {{LSL Const|PARCEL_FLAG_USE_LAND_PASS_LIST|integer|2048|hex=0x00000800|c=find if a parcel allows passes to be purchased}}
{{!}} {{LSL Hex|0x800|2048}}
{{!}} {{#var:value}}
{{!}} find if a parcel allows passes to be purchased
{{!}} {{#var:comment}}
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_LOCAL_SOUND_ONLY}}
{{!}} {{LSL Const|PARCEL_FLAG_LOCAL_SOUND_ONLY|integer|32768|hex=0x00008000|c=find if a parcel restricts spatialized sound to the parcel}}
{{!}} {{LSL Hex|0x8000|32768}}
{{!}} {{#var:value}}
{{!}} find if a parcel restricts spatialized [[sound]] to the parcel
{{!}} {{#var:comment}}
{{!}}-  
{{!}}-  
{{!}} {{LSLG|PARCEL_FLAG_RESTRICT_PUSHOBJECT}}
{{!}} {{LSL Const|PARCEL_FLAG_RESTRICT_PUSHOBJECT|integer|2097152|hex=0x00200000|c=find if a parcel restricts llPushObject}}
{{!}} {{LSL Hex|0x200000|2097152}}
{{!}} {{#var:value}}
{{!}} find if a parcel restricts {{LSLG|llPushObject}}
{{!}} {{#var:comment}}
{{!}}-
{{!}} {{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x20000000|c=find if a parcel allows voice chat}}}}
{{!}} {{#var:value}}
{{!}} {{#var:comment}}
{{!}}}
{{!}}}
|examples=
|examples=
if (llGetParcelFlags(llGetPos())!=PARCEL_FLAG_ALLOW_FLY) llSay(0,"You are not allowed to fly here!, Sorry!.");
<pre>
if (llGetParcelFlags(llGetPos()) != PARCEL_FLAG_ALLOW_FLY)
    llSay(0,"You are not allowed to fly here!, Sorry!.");
</pre>
|helpers
|helpers
|also_functions
|also_functions
Line 68: Line 75:
|also_articles
|also_articles
|notes
|notes
|permission
|negative_index
|sort=GetParcelFlags
|cat1=Parcel
|cat1=Parcel
|cat2
|cat2

Revision as of 14:18, 4 August 2007

Summary

Function: integer llGetParcelFlags( vector pos );

Returns an integer that is the parcel flags (PARCEL_FLAG_*) for the parcel including the point pos.

• vector pos

Flag Description
PARCEL_FLAG_ALLOW_FLY 0x00000001 find if a parcel allows flying
PARCEL_FLAG_ALLOW_SCRIPTS 0x00000002 find if a parcel allows outside scripts
PARCEL_FLAG_ALLOW_LANDMARK 0x00000008 find if a parcel allows landmarks to be created
PARCEL_FLAG_ALLOW_TERRAFORM 0x00000010 find if a parcel allows anyone to terraform the land
PARCEL_FLAG_ALLOW_DAMAGE 0x00000020 find if a parcel allows damage
PARCEL_FLAG_ALLOW_CREATE_OBJECTS 0x00000040 find if a parcel allows anyone to create objects
PARCEL_FLAG_USE_ACCESS_GROUP 0x00000100 find if a parcel limits access to a group
PARCEL_FLAG_USE_ACCESS_LIST 0x00000200 find if a parcel limits access to a list of residents
PARCEL_FLAG_USE_BAN_LIST 0x00000400 find if a parcel uses a ban list, including restricting access based on payment info
PARCEL_FLAG_USE_LAND_PASS_LIST 0x00000800 find if a parcel allows passes to be purchased
PARCEL_FLAG_LOCAL_SOUND_ONLY 0x00008000 find if a parcel restricts spatialized sound to the parcel
PARCEL_FLAG_RESTRICT_PUSHOBJECT 0x00200000 find if a parcel restricts llPushObject
0x20000000 find if a parcel allows voice chat

Examples

if (llGetParcelFlags(llGetPos()) != PARCEL_FLAG_ALLOW_FLY)
    llSay(0,"You are not allowed to fly here!, Sorry!.");

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetParcelFlags( vector pos );