Code:
selected: source = GetSourceRef(); // Setup the meshes and models. jkSetPOVModel(source, povModel); jkSetWeaponMesh(source, weaponMesh); SetArmedMode(source, 0); jkSetWaggle(source, '10.0 7.0 0.0', 350); mountsound=PlaySoundThing(mountSound, player, 1.0, -1, -1, 0x80); // Clear saber flags, and allow activation of the weapon jksetFlags(source, 0x5); SetCurWeapon(source, 10); Return;
Player is defined above as "player=getlocalplayerthing();" in startup: message.
What'll happen is the sound plays the first time you turn the saber on. For the rest of that game, it doesn't play. I have no idea why.
------------------
Duel Zero key count: Zero! Down to guns and forces. Expect a release soon.
in the symbols section. It plays the sound, then assigns it to the mountsound var, overwriting the "whatever.wav" data stored in the variable. As long as they aren't the same name, it should work fine.![http://forums.massassi.net/html/tongue.gif [http://forums.massassi.net/html/tongue.gif]](http://forums.massassi.net/html/tongue.gif)
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)
![http://forums.massassi.net/html/biggrin.gif [http://forums.massassi.net/html/biggrin.gif]](http://forums.massassi.net/html/biggrin.gif)