Ok.. so I'm a newb.. just hatched.
Anyway, for now I'm trying to find a function that returns the name of the avatar touching the scripted object. Ideally, this is what I want to happen:
(billy bob touches object)
(function gets name, checks against names in its little database, billy bob is not in the list.)
OBJECT: sorry billy bob, you do not have access to thiss area!
billy bob: Darn!
(petey paul touches object)
(funtion gfets name, looks thru list, no match)
OBJECT: sorry petey paul, you do not have access to this area!
petey paul: I'll hack you somehow, code!
(a user whose name DOES appear in the list touches the object)
(function gets name, searches the list...)
OBJECT: Click!
OBJECT: door opening for Enkil prototype...
(enkil passes thru)
OBJECT: door closing... thank you enkil prototype.
this should work not just for the owner of the object, but for any and all authorized, in group or no...
the search thru list in jusst a lon bool with names in it, so that is simple.. but I cant get the object to recognize the users name...
Is this possible? Ive been looking in the script guide and havent found anything helpful.