These forums are CLOSED. Please visit the new forums HERE
How to find an agent's position? |
|
|
Mako Yoshikawa
Registered User
Join date: 4 Feb 2007
Posts: 4
|
09-19-2007 14:51
Hi.. I'm sorry if this is obvious or asked before, I couldn't find it searching.. how would I get a local agent's position?
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
09-19-2007 16:55
It really depends on the application and the information you already have (or don't have) about the agent. Additionally, how far away is "local agent"? Are they potentially 500 meters distant (due to vertical distance of course)?
_____________________
--AeonVox--
Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music. |
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
09-20-2007 06:44
llDetectedPos can be used if you have the agent already interacting with your object via some event, such as a touch event. Or you could use llSensor to search them out first.
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
09-20-2007 10:21
Can also use the new llGetObjectDetails() function, as it works on avatars, if you have the key already. It only works in the sim and adjacent sims for avatars (and only then if they are presently a child agent of the sim the script is in).
|
|
Chrysala Desideri
Scarlet Scriptrix
Join date: 4 Mar 2007
Posts: 65
|
09-24-2007 04:24
hi!
I have a question about llGetObjectDetails... do I have to install the RC viewer to use it? I thought the SL version referred to on the wiki was server-side, but in my viewer's editor [1.18.2(1)] it doesn't work, appears as black string? this would cut sensor chatter in scaners a ton: once acquired, track until gone... and i'm trying to make one right now ![]() |
|
Chop Sands
Registered User
Join date: 21 Apr 2007
Posts: 2
|
09-24-2007 05:22
llGetObjectDetails was Introduced in SL 1.18.3(2), so yeah you will need to download the Release Candidate Software to use it.
|