Jump to content

Need help with custom sound files! PLEASE HELP - NOOB QUESTION


SmultronBusken

Recommended Posts

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 ObjectReference

Sound property QSTAstrolabeButtonPressX(or any sound) auto

Event 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 ObjectReference

Sound property QSTAstrolabeButtonPressX auto

Event 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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...