|
Treat Rothschild
Registered User
Join date: 27 Apr 2006
Posts: 20
|
12-17-2006 20:16
I'm working on a vendor type script that ties in with a teleporter.
Basically, it reads from a notecard for places and coordinates, then feeds the selected coordinates to a simple Sit teleporter and it goes.
I'm at a point where it all seems to work except sometimes the whole thing will run through flawlessly and go to the click restart, and other times, it will stick in the teleport part and not move until the TP has been completed. I can get around that, but then the changed portion of the script doesn't run and the AV doesn't unsit at the other end.
My question: Is there another way to do an unsit without using changed? Or a way to put changed into an if-then-else set?
Thanks,
Treat
|
|
Teravus Ousley
---=//^Ö¿Ö^\\=---
Join date: 11 May 2006
Posts: 17
|
unsitting an avatar
12-18-2006 11:23
You can unsit an avatar at any time. It doesn't necessarily have to be in the changed event. However, you will need to use the changed event to keep track of if an avatar is sitting on the sit target or not. Some of the time in the past, I've used the changed event and then stored the LUUID of the person sitting on the prim in a variable, then at the end of a loop, I have unsit the uuid using the stored variable. Be sure to check if the variable is NULL_KEY first though. The environment can change without warning. After you Unsit someone, you can store , NULL_KEY back to the variable.
You may also opt to do this in the changed event. Doing that, however will give you the same problem you seem to be experiencing.
_____________________
Our portals are gaurenteed to bring you fresh breath, great teeth and full head of hair, what more could you want?
|