Page 1 of 1

ProximityList Question

Posted: 19 Feb 2025, 14:23
by AiryKai
Hello!

I have a question about updating ProximityList.

I have custom extension code that updates positions for multiple users and one MMOItem.
It happens in one place in the code, just in a loop.

I do this to ensure that the player and MMOItem always stay in proximity list, even if I move them a great distance at the same time. More than proximity distance.

Are there possible situations where a user will receive a Proximity List Update event in which this MMOItem will leave the proximity zone?

And another question: Can I force the Proximity List Update event from the extension code?

Thanks.

Re: ProximityList Question

Posted: 19 Feb 2025, 14:42
by Lapo
Hello,
Are there possible situations where a user will receive a Proximity List Update event in which this MMOItem will leave the proximity zone?

I am not sure what you mean by "proximity zone"? Maybe you mean the area of interest? (AoI) That's the area around each User that limits the event that can be received (triggered by entities inside of the AoI) and those that can't (happening outside of it).

In this case I don't think it could happen, as you have described a situation where the User and MMOItem moves together at the same time.

And another question: Can I force the Proximity List Update event from the extension code?

No, this is regulated by the Room configuration and it is time based.

Cheers

Re: ProximityList Question

Posted: 19 Feb 2025, 15:50
by AiryKai
Lapo wrote:I am not sure what you mean by "proximity zone"? Maybe you mean the area of interest? (AoI) That's the area around each User that limits the event that can be received (triggered by entities inside of the AoI) and those that can't (happening outside of it).


Yeah, that's what I mean.

Lapo wrote:No, this is regulated by the Room configuration and it is time based.


Is there any way to track when the last event was sent?

I know there is a parameter that limits the frequency of proximity list events. Is this calculated for each user or for the whole room?

Re: ProximityList Question

Posted: 20 Feb 2025, 07:39
by Lapo
Is there any way to track when the last event was sent?

From server side, no. From client side you can track it by listening to the SFSEvent.PROXIMITY_LIST_UPDATE event.

I know there is a parameter that limits the frequency of proximity list events. Is this calculated for each user or for the whole room?

It's the same:
the value is attached to the Room, but the updates are sent to the players. In other words, there is one global, Room-level setting that dictates the rate of updates for all players.

Cheers