Unofficial LSL Reference

[[functions:lladdtolandpasslist]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

functions:lladdtolandpasslist [2014-01-03 13:34 SLT]
sei created
functions:lladdtolandpasslist [2015-09-22 18:27 SLT] (current)
sei style, add descriptions to see also
Line 1: Line 1:
-$delayfloat[0.1]+$nav
 ===== Function: llAddToLandPassList ===== ===== Function: llAddToLandPassList =====
  
Line 5: Line 5:
 llAddToLandPassList(key id, float hours) llAddToLandPassList(key id, float hours)
 </​code>​ </​code>​
-Add a person to the allowed residents list of the parcel, either temporarily or permanently.+Add a person to the allowed residents list ("​white list"​) ​of the parcel, either temporarily or permanently.
  
 $delay[0.1] $delay[0.1]
Line 12: Line 12:
  
 === id === === id ===
-The [[types/key]] of the avatar to allow access to.+The $lty[key] of the avatar to allow access to.
  
 === hours === === hours ===
-A [[types/float]] with the number of hours the access allowance will last, or zero to be added permanently to the allowed avatars list.+$lty[float] with the number of hours the access allowance will last, or zero to be added permanently to the allowed avatars list.
  
 ===== Notes ===== ===== Notes =====
  
   * $delay[0.1]   * $delay[0.1]
 +  * When the addition is not permanent, the maximum time that can be specified is 144 hours (6 days). If more than 144 hours are specified, 144 will be used.
   * Only scripts in objects owned by the land owner can use this function.   * Only scripts in objects owned by the land owner can use this function.
  
Line 28: Line 29:
 // to the access allowance list // to the access allowance list
 llAddToLandPassList("​a2e76fcd-9360-4f6d-a924-000000000001",​ 0); llAddToLandPassList("​a2e76fcd-9360-4f6d-a924-000000000001",​ 0);
 +// Allow access to Philip Linden for 6 days (144 hours)
 +llAddToLandPassList("​a2e76fcd-9360-4f6d-a924-000000000003",​ 9999);
 </​code>​ </​code>​
  
 ===== Complete examples ===== ===== Complete examples =====
  
-This scripts ​scans for avatars every hour, and allows ​allows half an hour of access to a random avatar that is within 60 metres of the object:+This script ​scans for avatars every hour, and allows half an hour of access to a random avatar that is within 60 metres of the object:
  
 <file lsl2 llAddToLandPassList-example.lsl>​ <file lsl2 llAddToLandPassList-example.lsl>​
Line 44: Line 47:
     sensor(integer num)     sensor(integer num)
     {     {
-        llAddToLandPassList(llDetectedKey((integer)lllFrand(num)), 0.5);+        llAddToLandPassList(llDetectedKey((integer)llFrand(num)), 0.5);
     }     }
 } }
Line 51: Line 54:
 ===== See also ===== ===== See also =====
  
-  * [[llRemoveFromLandPassList]] +  * $lfn[llRemoveFromLandPassList] ​to remove someone from the white list. 
-  * [[llResetLandPassList]] +  * $lfn[llResetLandPassList] ​to clear the white list. 
-  * [[llAddToLandBanList]] +  * $lfn[llAddToLandBanList] ​to add someone to the ban list. 
-  * [[llRemoveFromLandBanList]] +  * $lfn[llRemoveFromLandBanList] ​to remove someone from the ban list. 
-  * [[llResetLandBanList]]+  * $lfn[llResetLandBanList] ​to clear the ban list.