You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This shows you the differences between two versions of the page.
functions:lladdtolandpasslist [2014-01-03 14:16 SLT] sei Add fixme, fix max time |
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. | + | A $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 ===== | ||
Line 25: | Line 25: | ||
===== Short examples ===== | ===== Short examples ===== | ||
- | FIXME For some reason Lindens get removed when added. Find a suitable avatar. | ||
<code lsl2> | <code lsl2> | ||
// Permanently add Doug Linden, whose key is a2e76fcd-9360-4f6d-a924-000000000001, | // Permanently add Doug Linden, whose key is a2e76fcd-9360-4f6d-a924-000000000001, | ||
Line 36: | Line 35: | ||
===== 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 48: | Line 47: | ||
sensor(integer num) | sensor(integer num) | ||
{ | { | ||
- | llAddToLandPassList(llDetectedKey((integer)lllFrand(num)), 0.5); | + | llAddToLandPassList(llDetectedKey((integer)llFrand(num)), 0.5); |
} | } | ||
} | } | ||
Line 55: | 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. |