Dwail
04-04-12, 11:55 AM
Hi, guys!. I'm with another problem! :damn:
I'm trying to make an script for listen, when i push Toggle Battle Stations direct access, with Ui interface menu of TheDarkWright, the sound correct for each case. (on/off)
I'm created the next script file, /data/scripts/AI/Crew/Toggle_battle_stations.aix :
strategy Toggle_battle_stations(wp)
{
action
{
Wp:ExecuteCommand( "Toggle_battle_stations" );
if Wp:Isbattlestations() then
{
Wp:PlaySoundWithLipsync("ExecutiveOfficer\Normal\MC_CR_SO_01_A", 0)
}
else
{
Wp:PlaySoundWithLipsync("ExecutiveOfficer\Normal\MC_CR_SO_03", 0)
}
endif;
Wp:ScriptCompleted();
}
}
When I active this script the game cause me CTD, when I try to loading a mission. I don't understand what's wrong!. Please, can you help me?
Thanks in advance!.
I'm trying to make an script for listen, when i push Toggle Battle Stations direct access, with Ui interface menu of TheDarkWright, the sound correct for each case. (on/off)
I'm created the next script file, /data/scripts/AI/Crew/Toggle_battle_stations.aix :
strategy Toggle_battle_stations(wp)
{
action
{
Wp:ExecuteCommand( "Toggle_battle_stations" );
if Wp:Isbattlestations() then
{
Wp:PlaySoundWithLipsync("ExecutiveOfficer\Normal\MC_CR_SO_01_A", 0)
}
else
{
Wp:PlaySoundWithLipsync("ExecutiveOfficer\Normal\MC_CR_SO_03", 0)
}
endif;
Wp:ScriptCompleted();
}
}
When I active this script the game cause me CTD, when I try to loading a mission. I don't understand what's wrong!. Please, can you help me?
Thanks in advance!.