View Single Post
  #3  
Old 02-24-2012, 08:48 AM
41Sqn_Banks 41Sqn_Banks is offline
Approved Member
 
Join Date: Oct 2007
Posts: 644
Default

There is a function of the IIRC GameDef that allows to translate a path string that uses the "$home" or "$user" (e.g. "$user/missions/test/bla.mis") variables into the system path (e.g. "C:\\users\\...\\missions\\test\\bla.mis"). The "$home" variable points to the game install directory.

Not sure if you can access this function from the AMission context. Try this to get to GameDef

Code:
if (GamePlay is GameDef)
{
      GameDef game = (GameDef)GamePlay;
      gameServer. ...;
}
Reply With Quote