CODE
integer bSitting = ( "Sitting" == llGetAnimation(llGetOwner()) );
Can you fake sitting under such a scenario by creating an animation called Sitting, or something like that?
Azelda
These forums are CLOSED. Please visit the new forums HERE
Test for sitting? |
|
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
|
11-30-2004 11:15
Is the following a sufficient test that someone is testing?
CODE
Can you fake sitting under such a scenario by creating an animation called Sitting, or something like that? Azelda _____________________
|
Tad Jensen
Script Junkie
Join date: 29 May 2004
Posts: 24
|
11-30-2004 11:33
think that should be sufficient...
Wiki says... for the state of llGetAnimation() Sitting -- This is returned even when the avatar is sitting on something that stopped the generic sit animation and plays its own instead. not sure if its applicable but there is a Sitting on ground also that may confuse your script depending on your application... |
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
|
11-30-2004 11:46
> not sure if its applicable but there is a Sitting on ground also that may confuse your script depending on your application...
Sitting on the ground is ok. Its for a racing game. Thats kindof motivational not to sit on the ground for extended periods of time ![]() Azelda _____________________
|
Malachi Petunia
Gentle Miscreant
![]() Join date: 21 Sep 2003
Posts: 3,414
|
11-30-2004 12:49
As this is for vehicles, it seems to me that the changed() event would be a far more reliable indicator that the person is sitting in a vehicle as there are far fewer exceptions (e.g. the ground) to consider.
|
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
|
11-30-2004 13:48
Ah, but I dont own the vehicle: players can bring their own.
Azelda _____________________
|
Adam Zaius
Deus
![]() Join date: 9 Jan 2004
Posts: 1,483
|
11-30-2004 21:27
What about llAvatarOnSitTarget?
-Adam _____________________
|
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
|
12-01-2004 03:45
Well, I dont have access to the vehicle, so anything that needs to go into the thing-being-sat-on is excluded.
Azelda _____________________
|