I know how to get the SetName Using the
pSet.GetName() command
but i want to use it to import the corosponding file from a directory.
Example of what ive tried:
pPlayer = MissionLib.GetPlayer()
pSet = pPlayer.GetContainingSet()
sSetName = pSet.GetName()
print("Current Location: " + str(sSetName))
__import__ ("Custom.QBautostart.NFSystemDirectory." + sSetName)
So it will import the name of the system i.e Belaruz4 and add it so it will
import Custom.QBautostart.NFSystemDirectory.Belaruz4
Ive had it working with the Print Command but i cant get it to acctually import the file can someone lend a hand.