Author Topic: Map Detection  (Read 622 times)

Is there already a way to detect what map is currently being run by calling a function or variable?  Otherwise, is there a some way I can slip a variable into a map so it's only created when this map is running?

This was answered about 5 topics down.

To get the name of the mission rather than the file path, you can do:
Code: [Select]
echo(MissionInfo.name);

Yeah, I agree with Randy.  Much better to use map name than .mis filename.

That's what I was going for.  I guess I should have looked closer and asked the question in that thread.  Sorry  :cookieMonster: