Are verse devices per lobby or per player?

Super newb question about verse devices.

If I create a new script and this script updates a float, will this value be updated relative to the whole lobby or relative to the players game instance when they join the lobby?

I created a script that tracks the players distance from the ground (yes, another only up like game :slight_smile: ), the verse only has one float after detecting a “OnEnter” in a mutation zone, do I need to track the distance FOR EACH player and then update accordingly or will the verse script only track the float for the players game instance?

Another way to ask this, would the verse script “OnBegin” get called when the lobby is created or would it be called for each new player, as in a new verse instance?

2 Likes

Those are called “per lobby”. If you want some per-player code you’d need to use some events such as player added or respawned. Something which gives you a reference to the agent. Here’s an example script which shows tracking variables per-player Track and emit events when players stand still | Uefn Code Snippet

2 Likes

Absolutely splendid answer!

It’s interesting how in most game engines the “Update” is hot and ready but for verse/UEFN we have to write our own and call our own “update” method, I don’t mind that, but, find it interesting!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.