#include common_scripts\utility; #include maps\_utility; #include maps\_hud_util; //need to be able to save select dvar in menu (spending points while in the menu) //need to be able to save select dvar from script (dvars track which items are found) main() { //assert_if_identical_origins(); precachestring( &"SCRIPT_INTELLIGENCE_OF_THIRTY"); level.intel_items = create_array_of_intel_items(); println ("intelligence.gsc: intelligence items:", level.intel_items.size); setDvar( "ui_level_cheatpoints", level.intel_items.size ); level.table_origins = create_array_of_origins_from_table(); initialize_intel(); level.intel_counter = 0; // intel_counter for collected intel points for this mission setDvar( "ui_level_player_cheatpoints", level.intel_counter ); remove_found_intel(); } remove_found_intel() { while( true ) { for (i=0;i