Please complete creating a "map.script" file before following this tutorial. The "mapname.script" file is used to setup how things change during gameplay. These include things like spawn points, territories, objectives, objective markers, respawn times, and more.
//Defines
object mapObject_mapname : mapObject_Default
{
/****Variable and Function Declarations****/
//Objectives
//Objective Markers
//Spawns
//Territories
//End Game
}
mapObject_Base mapname_MapScript()
{
return new mapObject_mapname;
}
/****Function Definitions****/
In the mapinfo file, "mapname.md", we tell the game where our entry point is. This is accomplished by the following line:
"script_entrypoint" "mapname_MapScript"
When running the map, the function "mapname_MapScript" is called. As we can see in the code above this function creates a new instance/object called "mapObject_mapname". This object, or instance, is created based off of a class (which is basically a template). The template inherits part of its structure from "mapObject_Default".