Sorry for the hiatus, I had exams to take care of and immediately afterwards went on a family trip to Europe. However, I'm now back and have the whole summer to work on this map (hopefully even finish it?).
There has been 0% progress since the video I posted here so I'm hoping to continue working gradually. I have, unsurprisingly, encountered another problem when running my map:
Remember on the video that the first objective is to "kill the sniper?" Well as you saw in it, once the sniper died nothing happened. In my sloppy code I wanted the map to end after the sniper dies to see if the objective works (missionsuccess). I've posted the frost.gsc code below:
setCullFog (500, 10000, 0.0274, 0.0823, 0.1607, 0 );
level.player setViewmodel( "xmodel/viewmodel_hands_russian" );
level.player giveWeapon ("colt");
level.player giveWeapon ("fraggrenade");
level.player switchToWeapon ("colt");
precacheshader("black"); // Precaches the black shader
precacheString(&"FROST_INTRO_1"); // The title of the Level
precacheString(&"FROST_INTRO_2"); // Where the level takes place
precacheString(&"FROST_INTRO_3"); // Month Day, Year
precacheString(&"FROST_INTRO_4"); // Optional info about the level
maps\_introscreen::introscreen_delay(&"FROST_INTRO_1", &"FROST_INTRO_2", &"FROST_INTRO_3", &"FROST_INTRO_4"); // Action!!
obj1 = getent("obj1", "targetname"); //Get entity(German AI) in map
objective_add(1, "active", &"FROST_OBJ1",getent("obj1", "targetname").origin);
iprintlnbold ("Press the |Tab| key to check your Objectives");
obj1 waittill("death"); //Waits till German AI is killed
objective_state(1, "done"); //Objective 1 is done
iprintlnbold (&"FROST_OBJ_COMPLETED"); //Let player know he is done
Again, I'm no programmer (yet) so I don't really understand anything. In radiant I named the "sniper" actor: obj1. His target is a node_cover_cround in the church tower which has a targetname of auto1. The trigger that spawns the "sniper" actor has a targetname of auto2. I hope someone could help me here and tell me what's wrong with the code or radiant keys/values. Thanks!
Also, I was using this tutorial: http://modsonline.com/Tutorials-read-260.html