Psyke Phaeton
Psyke's Defense Systems
Join date: 12 Oct 2003
Posts: 197
|
03-05-2005 16:33
when llSensor(...) triggers sensor() and the detected object/avatar is in an adjacent sim two things seem to go wrong.
1. The object is only detected once every 6 seconds. 2. The object's position can be detected with llDetectedPos() but its sim cannot be. llDetectedSim(num) or llDectectedGlobalPos(num) needed?
How can i determin the distance between 2 objects in adjacent sims?
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
03-05-2005 17:25
1) Compare llGetPos and llDetectedPos. 2) If llVecMag(llGetPos() - llDetectedPos(#)) > 96... 3) ... they're in a different sim and need different calculations. Check X and Y separately to see where.  This only works because sims are larger than 192m (256 or so total). But... it's still useful. 
_____________________
---
|