Bridge Commander Central

BC Forums => BC Scripting => Topic started by: Starforce2 on December 16, 2010, 06:54:41 AM

Title: if I change the name of a torpedo
Post by: Starforce2 on December 16, 2010, 06:54:41 AM
If I change the name of a torpedo's projectile file, but leave everything else the same, do I need to change the autoload for the sound too?
Title: Re: if I change the name of a torpedo
Post by: JimmyB76 on December 16, 2010, 07:38:05 AM
im gonna toss the thread into Scripting...


you wouldnt need to change anything in the autoload script - the autoload script defines what fire sound (dictated in the torp script) to use, so changing the name of the torp wouldnt matter...

in the torp's projectile script, using TOS photorp as example:
Code: [Select]
def GetLaunchSound():
return("TOSphotorp")

autoload script:
Code: [Select]
Foundation.SoundDef("sfx/Weapons/TOS_photorp.wav", "TOSphotorp", 1)