Skip to content

Player Position

Taz edited this page Feb 12, 2020 · 5 revisions
MinimapAPI:SetPlayerPosition(Vector position)

Sets the player's position on the minimap

WARNING!

If there are pickups in the room, the API will apply the pickups' icons to whatever room this position corresponds to. It is recommended you apply any room transitions on the same frame as using this function.

MinimapAPI:GetPlayerPosition()

Returns the player's map vector position relative to the top left of the map (0,0)

MinimapAPI:AddPlayerPositionCallback(modtable, func)

The function should take a room as first argument and a position as a second argument. This function is for when you need to set player position at the exact time it changes. Return vector position to set to that new position, or return nil to do nothing. You shouldn't use this unless you HAVE to.

Clone this wiki locally