Working with maps in-game
When you have created one or several maps, you can use these functions to use them in your game.
Use this function to retrieve all maps available for your game;
Unity
Unreal
LootLockerSDKManager.GetAllMaps((response) =>
{
if (response.success)
{
Debug.Log("Succesfully recieved maps");
for (int i = 0; i < response.maps.Length; i++)
{
Debug.Log(response.maps[i].spawn_points[0].position);
}
}
else
{
Debug.Log("Error, could not fetch maps:" + response.Error);
}
});
Last modified 2mo ago