Difference between revisions of "LlGetParcelFlags"
Jump to navigation
Jump to search
m |
|||
Line 18: | Line 18: | ||
{{!}}- | {{!}}- | ||
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_SCRIPTS|integer|2|hex=0x00000002|c=find if a parcel allows outside scripts}} | {{!}} {{LSL Const|PARCEL_FLAG_ALLOW_SCRIPTS|integer|2|hex=0x00000002|c=find if a parcel allows outside scripts}} | ||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_FOR_SALE</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|4|hex=0x00000004|c=find if a parcel is for sale}}}} | |||
{{!}} {{#var:value}} | {{!}} {{#var:value}} | ||
{{!}} {{#var:comment}} | {{!}} {{#var:comment}} | ||
Line 34: | Line 38: | ||
{{!}}- | {{!}}- | ||
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_CREATE_OBJECTS|integer|64|hex=0x00000040|c=find if a parcel allows anyone to create objects}} | {{!}} {{LSL Const|PARCEL_FLAG_ALLOW_CREATE_OBJECTS|integer|64|hex=0x00000040|c=find if a parcel allows anyone to create objects}} | ||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_FOR_SALE_OBJECTS</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|128|hex=0x00000080|c=find if a parcel allows the objects to be purchased with the land}}}} | |||
{{!}} {{#var:value}} | {{!}} {{#var:value}} | ||
{{!}} {{#var:comment}} | {{!}} {{#var:comment}} | ||
Line 50: | Line 58: | ||
{{!}}- | {{!}}- | ||
{{!}} {{LSL Const|PARCEL_FLAG_USE_LAND_PASS_LIST|integer|2048|hex=0x00000800|c=find if a parcel allows passes to be purchased}} | {{!}} {{LSL Const|PARCEL_FLAG_USE_LAND_PASS_LIST|integer|2048|hex=0x00000800|c=find if a parcel allows passes to be purchased}} | ||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_SHOW_DIRECTORY</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x00001000|c=}}}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_ALLOW_DEED_TO_GROUP</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x00002000|c=}}}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_CONTRIBUTE_WITH_DEED</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x00004000|c=}}}} | |||
{{!}} {{#var:value}} | {{!}} {{#var:value}} | ||
{{!}} {{#var:comment}} | {{!}} {{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}} {{LSL Const|PARCEL_FLAG_LOCAL_SOUND_ONLY|integer|32768|hex=0x00008000|c=find if a parcel restricts spatialized sound to the parcel}} | {{!}} {{LSL Const|PARCEL_FLAG_LOCAL_SOUND_ONLY|integer|32768|hex=0x00008000|c=find if a parcel restricts spatialized sound to the parcel}} | ||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_SELL_PARCEL_OBJECTS</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x00010000|c=Objects on land are included as part of the land when the land is sold}}}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_ALLOW_PUBLISH</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x00020000|c=Allow publishing of parcel information on the web}}}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_MATURE_PUBLISH</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x00040000|c=The information on this parcel is mature}}}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_URL_WEB_PAGE</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x00080000|c=The "media URL" is an HTML page}}}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_URL_RAW_HTML</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x00100000|c=The "media URL" is a raw HTML string like "Foo"}}}} | |||
{{!}} {{#var:value}} | {{!}} {{#var:value}} | ||
{{!}} {{#var:comment}} | {{!}} {{#var:comment}} | ||
Line 61: | Line 101: | ||
{{!}} {{#var:comment}} | {{!}} {{#var:comment}} | ||
{{!}}- | {{!}}- | ||
{{!}} {{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x20000000|c=find if a parcel allows voice chat}}}} | {{!}} <s>PF_DENY_ANONYMOUS</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x00400000|c=}}}} | ||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_DENY_IDENTIFIED</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x00800000|c=}}}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_DENY_TRANSACTED</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x01000000|c=}}}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_GROUP_SCRIPTS|integer|hex=0x02000000|c=find if a parcel allows scripts owned by group}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS|integer|hex=0x04000000|c=find if a parcel allows object creation by group members or objects}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_ALL_OBJECT_ENTRY|integer|hex=0x08000000|c=find if a parcel allows all objects to enter a parcel}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} {{LSL Const|PARCEL_FLAG_ALLOW_GROUP_OBJECT_ENTRY|integer|hex=0x10000000|c=find if a parcel only allows group (and owner) objects to enter the parcel}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_ALLOW_VOICE_CHAT</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x20000000|c=find if a parcel allows voice chat}}}} | |||
{{!}} {{#var:value}} | |||
{{!}} {{#var:comment}} | |||
{{!}}- | |||
{{!}} <s>PF_USE_ESTATE_VOICE_CHAN</s>{{#if:{{LSL Const|PARCEL_FLAG_????|integer|hex=0x40000000|c=}}}} | |||
{{!}} {{#var:value}} | {{!}} {{#var:value}} | ||
{{!}} {{#var:comment}} | {{!}} {{#var:comment}} |
Revision as of 15:22, 4 August 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llGetParcelFlags( vector pos );317 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns an integer that is the parcel flags (PARCEL_FLAG_*) for the parcel including the point pos.
• vector | pos |
Flag | Value | Description |
---|---|---|
PARCEL_FLAG_ALLOW_FLY | 0x00000001 | find if a parcel allows flying |
PARCEL_FLAG_ALLOW_SCRIPTS | 0x00000002 | find if a parcel allows outside scripts |
0x00000004 | find if a parcel is for sale | |
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 |
0x00000080 | find if a parcel allows the objects to be purchased with the land | |
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 |
0x00001000 | ||
0x00002000 | ||
0x00004000 | ||
PARCEL_FLAG_LOCAL_SOUND_ONLY | 0x00008000 | find if a parcel restricts spatialized sound to the parcel |
0x00010000 | Objects on land are included as part of the land when the land is sold | |
0x00020000 | Allow publishing of parcel information on the web | |
0x00040000 | The information on this parcel is mature | |
0x00080000 | The "media URL" is an HTML page | |
0x00100000 | The "media URL" is a raw HTML string like "Foo" | |
PARCEL_FLAG_RESTRICT_PUSHOBJECT | 0x00200000 | find if a parcel restricts llPushObject |
0x00400000 | ||
0x00800000 | ||
0x01000000 | ||
PARCEL_FLAG_ALLOW_GROUP_SCRIPTS | 0x02000000 | find if a parcel allows scripts owned by group |
PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS | 0x04000000 | find if a parcel allows object creation by group members or objects |
PARCEL_FLAG_ALLOW_ALL_OBJECT_ENTRY | 0x08000000 | find if a parcel allows all objects to enter a parcel |
PARCEL_FLAG_ALLOW_GROUP_OBJECT_ENTRY | 0x10000000 | find if a parcel only allows group (and owner) objects to enter the parcel |
0x20000000 | find if a parcel allows voice chat | |
0x40000000 |
Caveats
Examples
if (llGetParcelFlags(llGetPos()) != PARCEL_FLAG_ALLOW_FLY) llSay(0,"You are not allowed to fly here!, Sorry!.");