SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 04-04-12, 11:55 AM   #1
Dwail
Sailor man
 
Join Date: Sep 2007
Location: Elche, Spain.
Posts: 43
Downloads: 196
Uploads: 0
Default Script Problem!

Hi, guys!. I'm with another problem!

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\M C_CR_SO_01_A", 0)
}
else
{
Wp:PlaySoundWithLipsync("ExecutiveOfficer\Normal\M C_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!.
Dwail is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:35 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.