LlGetParcelFlags
De DigiWiki.
Version du 6 novembre 2013 à 11:48 par Djphil (discuter | contributions)
if (!(llGetParcelFlags(llGetPos()) & PARCEL_FLAG_ALLOW_FLY)) llSay(0,"You are not allowed to fly here!, Sorry!.");
// Show all the parcel flags for land the object is currently over. default { state_entry () { integer Parcel_Flags = llGetParcelFlags(llGetPos ()); if (PARCEL_FLAG_ALLOW_FLY & Parcel_Flags) { llOwnerSay ("Parcel allows flying."); } if (PARCEL_FLAG_ALLOW_SCRIPTS & Parcel_Flags) { llOwnerSay ("Parcel allows outside scripts."); } if (PARCEL_FLAG_ALLOW_TERRAFORM & Parcel_Flags) { llOwnerSay ("Parcel allows terraforming."); } if (PARCEL_FLAG_ALLOW_DAMAGE & Parcel_Flags) { llOwnerSay ("Parcel allows damage."); } if (PARCEL_FLAG_ALLOW_CREATE_OBJECTS & Parcel_Flags) { llOwnerSay ("Parcel allows creating objects."); } if (PARCEL_FLAG_USE_ACCESS_GROUP & Parcel_Flags) { llOwnerSay ("Parcel limits access to a group."); } if (PARCEL_FLAG_USE_ACCESS_LIST & Parcel_Flags) { llOwnerSay ("Parcel limits access to a list of residents ."); } if (PARCEL_FLAG_USE_BAN_LIST & Parcel_Flags) { llOwnerSay ("Parcel uses a ban list."); } if (PARCEL_FLAG_USE_LAND_PASS_LIST & Parcel_Flags) { llOwnerSay ("Parcel allows passes to be purchased."); } if (PARCEL_FLAG_LOCAL_SOUND_ONLY & Parcel_Flags) { llOwnerSay ("Parcel restricts spatialised sound to the parcel."); } if (PARCEL_FLAG_RESTRICT_PUSHOBJECT & Parcel_Flags) { llOwnerSay ("Parcel restricts llPushObject."); } } touch_end (integer n) { llResetScript (); } }