Briefing map mysteries
Posted: Fri Aug 10, 2012 6:42 am
I am trying to customize some of these maps taken from the official scenarios, and getting strange behaviour.
I have the SPBMX_map.txt file and the SPBMX_briefing.dds for each of the six missions. Out of the 6 the briefing maps only 2 of them show up, and the code is the same except for the ID in each, is there any other file that has influence in this.
Also for the 2 briefing map that appear the text do not show, I have the reference to the text (SPBM2_text0_S) and then the string (IDS_SPBM2_INTRO_SPBM2_TEXT0) taken from sample scenarios. Is there something wrong in the naming, I tried a few alternatives.
And apart a script question, I want to know when the enemy has detected the player (for example if fire has started) I have taken the code from one of the official scenarios that looks good, but it is not working for me (the move action is correct as I am using it in another part of the code), any ideas as to why or alternatives.
I have the SPBMX_map.txt file and the SPBMX_briefing.dds for each of the six missions. Out of the 6 the briefing maps only 2 of them show up, and the code is the same except for the ID in each, is there any other file that has influence in this.
Also for the 2 briefing map that appear the text do not show, I have the reference to the text (SPBM2_text0_S) and then the string (IDS_SPBM2_INTRO_SPBM2_TEXT0) taken from sample scenarios. Is there something wrong in the naming, I tried a few alternatives.
And apart a script question, I want to know when the enemy has detected the player (for example if fire has started) I have taken the code from one of the official scenarios that looks good, but it is not working for me (the move action is correct as I am using it in another part of the code), any ideas as to why or alternatives.
Code: Select all
for(i=0; i<GetUnitCount(1); i++)
{
id = GetUnitID(1, i) ;
x = GetUnitX(id) ;
y = GetUnitY(id) ;
if( (GetUnitDead(id) == 0) && (GetTileLOS(x, y, 0) == 1) )
{
ShowUIScreenX("BattleHead0", "Anim1", "IDS_SPBM4_EV2", "BHead0Image:british_infantry_head") ;
AddVizCamCenter(18, 50);
AddVizDelay(20);
MoveTeam(1, 0, 0, 16) ;
}
}