Welcome Guest Search | Active Topics | Log In | Register

detect if prim has av sitting on it
Pongo Offline
#1 Posted : 10 July 2010 23:22:35(UTC)


Rank: METAbolter

Joined: 06/07/2010(UTC)
Posts: 11

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I've been browsing through the metabolt code and I had a question about how to tell if a prim is currently being sat on.

I looked through ChatConsole.cs and saw how the radar detects if an av is sitting. AddAvatar() checks whether the av has a ParentID defined, which means the av is sitting on that prim.

However, I don't see how to do the reverse: take a prim and see if there is any av on it. I suppose one way to do it is to scan all avs in the area and see if any of them has that prim as its ParentID, which would mean that it is indeed being sat on. But I'd like to know if there's a better way to tell from the prim directly that it's being sat on by an av.
Sponsor  
 
Luke Offline
#2 Posted : 11 July 2010 13:06:05(UTC)


Rank: Administration

Joined: 17/02/2010(UTC)
Posts: 1,273
Location: United Kingdom

Thanks: 92 times
Was thanked: 123 time(s) in 114 post(s)


To the best of my knowledge there isn't a way of directly telling if a prim is being sat on.


Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.