Difference between revisions of "LlGetParcelFlags"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 60: Line 60:
{{!}} find if a parcel restricts {{LSLG|llPushObject}}
{{!}} find if a parcel restricts {{LSLG|llPushObject}}
{{!}}}
{{!}}}
|examples
|examples=
if (llGetParcelFlags(llGetPos())!=PARCEL_FLAG_ALLOW_FLY) llSay(0,"You are not allowed to fly here!");
|helpers
|helpers
|also_functions
|also_functions

Revision as of 05:07, 10 June 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 0x1 find if a parcel allows flying
PARCEL_FLAG_ALLOW_SCRIPTS 0x2 find if a parcel allows outside scripts
PARCEL_FLAG_ALLOW_LANDMARK 0x8 find if a parcel allows landmarks to be created
PARCEL_FLAG_ALLOW_TERRAFORM 0x10 find if a parcel allows anyone to terraform the land
PARCEL_FLAG_ALLOW_DAMAGE 0x20 find if a parcel allows damage
PARCEL_FLAG_ALLOW_CREATE_OBJECTS 0x40 find if a parcel allows anyone to create objects
PARCEL_FLAG_USE_ACCESS_GROUP 0x100 find if a parcel limits access to a group
PARCEL_FLAG_USE_ACCESS_LIST 0x200 find if a parcel limits access to a list of residents
PARCEL_FLAG_USE_BAN_LIST 0x400 find if a parcel uses a ban list, including restricting access based on payment info
PARCEL_FLAG_USE_LAND_PASS_LIST 0x800 find if a parcel allows passes to be purchased
PARCEL_FLAG_LOCAL_SOUND_ONLY 0x8000 find if a parcel restricts spatialized sound to the parcel
PARCEL_FLAG_RESTRICT_PUSHOBJECT 0x200000 find if a parcel restricts llPushObject

Examples

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

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetParcelFlags( vector pos );