okay got the command to work to spawn NPCs. New challenge.
As I hope some of you know,
I am heading up a project to continue CoH in fan comic format. I can already see that Icon will be a HUGE asset to that effort. The ability to spawn NPCs where we want, and change them will be absolutely monumental for our efforts. That being said, it a bit tedious to type in names of NPCs and maps so I'm trying to create a pop menu for my demo editors to use to make it more a matter of point and click, rather then type and use to accomplish a lot of things.
So Basically I'm building a series of popmenus that the editors can load up. THen they macro the menu so it's in a power tray. They can click on the macro, get a pop menu, lets say it's for maps of atlas park. So you get a list of map variants like so:
"Atlas Park Destroyed, Wrecked MegaMech"
"Atlas Park Fashion Show"
"Atlas Park Destroyed"
And you need the more classic destroyed atlas park map, the one with out big giant mech remains. Great you click on "Atlas Park Destroyed" and it would load that map.
I've tested the command "loadmap MAPS/MISSIONS/OUTDOOR_MISSIONS/V_OUTDOOR_ATLAS/RECLUSE_RUINED/V_OUTDOOR_ATLAS_RECLUSE.TXT" and it works just fine.
I've bound the same command and it works.
I've macroed the command and it still works like a charm.
I put it in a popmenu, load the menu, use the command....and I get "LoadMapsInDevOnly"
I attempt to use the approach with spawning NPC, but when I use the command in a popmenu I just get "Unknown command: spawnnpc Model_statesman Statesman" but I can spawn the NPC using a macro or a bind no problem.
Does anyone have any suggestions for this? Or should I just start collecting a list of all the NPC models and map locations for my demo editors and tell 'em to C&P it?
Here are the menu's I've been building for reference:
Menu "Maps"
{
Title "Atlas Park"
Option "Atlas Park Destroyed, Wrecked MegaMech" "loadmap MAPS/MISSIONS/OUTDOOR_MISSIONS/V_OUTDOOR_ATLAS/RECLUSE_RUINED/V_OUTDOOR_ATLAS_RECLUSE.TXT"
Option "Atlas Park Fashion Show" "loadmap MAPS/MISSIONS/OUTDOOR_MISSIONS/OUTDOOR_FLASHBACK/IOM_FB_ATLAS_PARK_WTO/IOM_FB_ATLAS_PARK_WTO.TXT"
Option "Atlas Park Destroyed" "loadmap MAPS/MISSIONS/OUTDOOR_MISSIONS/V_OUTDOOR_ATLAS/RECLUSE_RUINED/V_OUTDOOR_ATLAS_RECLUSE.TXT"
}
Menu "Spawns"
{
Option "Spawn Statesman" "spawnnpc Model_statesman Statesman"
Option "Spawn Lord Recluse" "spawnnpc Signature_Lord_Recluse_Escape Lord recluse"
}