How to open gsc files

broken image
broken image

When parsing the script in the mapname.zone or when putting the script as a #using, you must still use the actual filename. the #namespace only changes the name you use when calling the external function.You can only use one #namespace per script.#namespace zombie_utility it's as simple as putting #namespace followed by the name you want to give the script. A #namespace goes in the preamble and looks like this: These basically designates a different name for the script than its actual filename. You may see in some scripts a #namespace. Now in-game you should notice both the print function inside yourmapname.gsc and the print function in the my_external_script.gsc being called, at pretty much the same exact time. Zm_weapons::load_weapon_spec_from_table('gamedata/weapons/zm/zm_levelcommon_weapons.csv', 1)

broken image

Thread my_external_script::my_cool_print_function() Level thread zm_zonemgr::manage_zones( init_zones ) Level.zone_manager_init_func =&usermap_test_zone_init Level._zombie_custom_add_weapons =&custom_add_weapons #using scripts\zm\_zm_powerup_weapon_minigun #using scripts\zm\_zm_powerup_insta_kill #using scripts\zm\_zm_powerup_double_points #using scripts\zm\_zm_perk_sleight_of_hand #using scripts\zm\_zm_perk_additionalprimaryweapon #using scripts\shared\clientfield_shared