|
Russ Allen
scripter
Join date: 22 Mar 2007
Posts: 22
|
06-11-2007 03:30
Hi, How can I check who is sitting and if anyone is sitting on the object? Also how can I kick someone off a chair? thanks
|
|
Simnelia Petrichor
Registered User
Join date: 10 Feb 2006
Posts: 35
|
06-11-2007 07:01
Use llSitTarget in the state_entry event to specify where on the prim an avatar will sit. Then you can use llAvatarOnSitTarget to return the key of the avatar sitting there.
Once you know who they are, you can use llUnSit to boot them off.
|
|
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
|
06-11-2007 11:14
Make sure that you use a non-zero vector for the sit target. Otherwise llAvatarOnSitTarget will always return NULL_KEY.
|