Blayze Raine
Renegade
Join date: 29 Dec 2004
Posts: 407
|
06-23-2005 17:45
Ok I saw a couple of the door lock scripts that are in the library but I need one that I can put on a rental property and allow them control over the locking and unlocking.
In other words, I need one that I can designate to them so I don't have to flap my wings to the house everytime they want to have someone new come over.
Anyone know of one?
Thanks
|
Bosozoku Kato
insurrectionist midget
Join date: 16 Jun 2003
Posts: 452
|
06-24-2005 06:45
Simple, use llDetectedGroup(integer num) or llSameGroup(key id) Say you allow locking/unlocking on a touch event (pretty normal) // globals... g_nLocked;
//....
default { state_entry() { // unlock door (default "startup routines)... g_nLocked = FALSE; } touch_end(integer num) { key whoid = llDetectedKey(0); if (llSameGroup(whoid)) { if (g_nLocked) { g_nLocked = FALSE; // unlock door routines... } else { g_nLocked = TRUE; // lock door routines... } } } } Edit php encoding looked like doodoo
|