Skip to Content
Commands/pr proximity

/pr proximity

/pr proximity <activity-id> (or /pr prox <activity-id>)

Available in Prism 4.4 and above.

Given an existing “basis activity”, the proximity command will find activities in relation to it.

For example, you can find all activities by a given player within 5 minutes of their player-join event.

The proximity command requires one of the following parameters:

  • before - Before the basis activity.
  • since - Since the basis activity.
  • r - A radius around the basis activity.
  • d - A duration around the basis activity (think of it like a radius but for time). This parameter is only available for this command.

First, you need to find an activity to be your basis. In our example, you can search for the player’s join event. You must use --nogroup so that the activity ID is visible.

/pr lookup a:join p:viveleroi --nogroup

The activity ID is the gray number to the left of the result rows, for example 101.

Take that ID and use it in the proximity command, with a required parameter:

/pr proximity 101 d:5m

You may also use regular parameters (except location/time-based ones) to further filter the results.

For our final example command, which finds all activities by the player viveleroi within 5 minutes of their join event, we can use:

/pr proximity 101 d:5m p:viveleroi