SmultronBusken Posted March 8, 2015 Share Posted March 8, 2015 When I am in game and hit the enemy, a sound should be played. Right now, no sound is played. However, if the sound descriptor is NOT a custom one , for example QSTAstrolabeButtonPress, it works.When i try to play my custom in Creation Kit it says "AUDIO: Unable to open Audio file: blabla". My custom sound is located in Data\Sound\FX\NPC This is my script that I wrote on an enemy actor:Scriptname OnHitSound extends ObjectReferenceSound property QSTAstrolabeButtonPressX(or any sound) autoEvent onHit(objectReference akAggressor, Form akWeapon, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)QSTAstrolabeButtonPressX(or any sound).play(self)endEvent Ive also tried this:Scriptname OnHitSound extends ObjectReferenceSound property QSTAstrolabeButtonPressX autoEvent onHit(objectReference akAggressor, Form akWeapon, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)int instanceID = QSTAstrolabeButtonPressX.play(self)Sound.SetInstanceVolume(instanceID, 1.0)endEvent Link to comment Share on other sites More sharing options...
henshu Posted March 9, 2015 Share Posted March 9, 2015 It may be a problem with the format of the audio you're trying to use, that gave me some trouble when I was first trying to put in new voices. They have to be mono, 16 bit, 44100hz. Link to comment Share on other sites More sharing options...
henshu Posted March 9, 2015 Share Posted March 9, 2015 (edited) [Double post, sorry] Edited March 9, 2015 by henshu Link to comment Share on other sites More sharing options...
Recommended Posts