04-15-2012, 06:27 AM
I have one of my characters set up so that he will use the Move After Death function in order to simulate a death quote. In the lying frame, an object is opointed. That object is set up to play the death sound when created.
Character Data:
Object Data:
What happens is, the object appears after the character is dead (just like it is supposed to) but no sound plays. The object also stays there forever without disappearing. When F4 is pressed to exit V.S. mode, the sound plays. O.o
Obviously I want the sound to play as soon as my character dies, not when I exit V.S mode. Is there something I am doing wrong with the code? Any suggestions would be greatly appreciated.
Character Data:
|
DC-Code:
<frame> 230 lying pic: 34 state: 14 wait: 30 next: 219 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 72 hit_a: 0 hit_d: 0 hit_j: 0 opoint: kind: 1 x: 40 y: 75 action: 247 dvx: 0 dvy: 0 oid: 271 facing: 0 opoint_end: wpoint: kind: 1 x: 35 y: 74 weaponact: 32 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0 wpoint_end: <frame_end> <frame> 231 lying pic: 44 state: 14 wait: 30 next: 219 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 75 hit_a: 0 hit_d: 0 hit_j: 0 opoint: kind: 1 x: 40 y: 75 action: 247 dvx: 0 dvy: 0 oid: 271 facing: 0 opoint_end: wpoint: kind: 1 x: 51 y: 76 weaponact: 24 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0 wpoint_end: <frame_end> |
Object Data:
|
DC-Code:
<frame> 247 death sound pic: 0 state: 15 wait: 1 next: 248 dvx: 0 dvy: 0 centerx: 0 centery: 0 hit_a: 0 hit_d: 0 hit_j: 0 opoint: kind: 1 x: 0 y: 0 action: 248 dvx: 0 dvy: 0 oid: 271 facing: 0 opoint_end: <frame_end> <frame> 248 death sound pic: 0 state: 15 wait: 1 next: 249 dvx: 0 dvy: 0 centerx: 0 centery: 0 hit_a: 0 hit_d: 0 hit_j: 0 sound: data\khvoice\xideath.wav <frame_end> <frame> 249 death sound pic: 0 state: 15 wait: 1 next: 1000 dvx: 0 dvy: 0 centerx: 0 centery: 0 hit_a: 0 hit_d: 0 hit_j: 0 <frame_end> |
What happens is, the object appears after the character is dead (just like it is supposed to) but no sound plays. The object also stays there forever without disappearing. When F4 is pressed to exit V.S. mode, the sound plays. O.o
Obviously I want the sound to play as soon as my character dies, not when I exit V.S mode. Is there something I am doing wrong with the code? Any suggestions would be greatly appreciated.

Chat



