In Black Ops 4, you can see the name of your location in the top left hand corner. I would like to do this in COD WAW. Any help would be greatly appreciated. Thanks.
get_location_text() { text = ""; zone_name = ""; zkeys = GetArrayKeys( level.zones ); for( z=0; z<zkeys.size; z++ ) { zone = level.zones ]; for (i = 0; i < zone.volumes.size; i++) { if (self IsTouching(zone.volumes[i]) ) zone_name = zone.volumes[i].targetname; } }
switch( zone_name ) { case "start_zone": text = "Spawn Room"; break;
case "power": text = "Power Room"; break;
default: text = "zone not defined"; break; }
return text; }
add level thread location_display(); under level thread DLC3_threadCalls2(); at the bottom of the main() now how it worksat the bottom fuction of this ( get_location_text() ) theres this bit
Code Snippet
Plaintext
switch( zone_name ) { case "start_zone": text = "Spawn Room"; break;
case "power": text = "Power Room"; break;
default: text = "zone not defined"; break; }
this is just an example part ive added, for it to work in your map youwil need to modify this. the part that says - case "start_zone" this is the name you gave the zone in radiant the part directly under it, the part that says "Spawn Room" is what will be displayed when your standing in this zone. change the example ones to two different zones you have with a name you want to give them and for every other zone you have copy and paste this part and change it to be as you need it
Code Snippet
Plaintext
case "start_zone": text = "Spawn Room"; break;
hope this is easy enough to understand,let me know if you have any issues
Last Edit: January 05, 2019, 11:59:13 am by death_reaper0
get_location_text() { text = ""; zone_name = ""; zkeys = GetArrayKeys( level.zones ); for( z=0; z<zkeys.size; z++ ) { zone = level.zones ]; for (i = 0; i < zone.volumes.size; i++) { if (self IsTouching(zone.volumes[i]) ) zone_name = zone.volumes[i].targetname; } }
switch( zone_name ) { case "start_zone": text = "Spawn Room"; break;
case "power": text = "Power Room"; break;
default: text = "zone not defined"; break; }
return text; }
add level thread location_display(); under level thread DLC3_threadCalls2(); at the bottom of the main() now how it worksat the bottom fuction of this ( get_location_text() ) theres this bit
Code Snippet
Plaintext
switch( zone_name ) { case "start_zone": text = "Spawn Room"; break;
case "power": text = "Power Room"; break;
default: text = "zone not defined"; break; }
this is just an example part ive added, for it to work in your map youwil need to modify this. the part that says - case "start_zone" this is the name you gave the zone in radiant the part directly under it, the part that says "Spawn Room" is what will be displayed when your standing in this zone. change the example ones to two different zones you have with a name you want to give them and for every other zone you have copy and paste this part and change it to be as you need it
Code Snippet
Plaintext
case "start_zone": text = "Spawn Room"; break;
hope this is easy enough to understand,let me know if you have any issues