Advertiser Content

Scripting Question Map Names in Scripts

Started by kierandobson October 2nd, 2019 4:41 PM
  • 1 replies
Seen October 2nd, 2019
Posted October 2nd, 2019
4 posts
1.6 Years
Hi, tried to have a look myself but can't seem to find/make anything that does the job I am after. I am trying to set a variable to the name of a map that the player is not currently on. I would prefer not to hard code this and use the actual map name as the variable.

I understand $ returns the name of the map I am currently standing on, what I would like to do is lookup the name of a given map ID.




Seen 3 Hours Ago
Posted 2 Days Ago
973 posts
4.3 Years
Load screen uses
mapname = pbGetMapNameFromId(@mapid)
Seems like this is what you want, though slight modifications are required, as I just pulled this directly from the load screen stuff.

Advertiser Content