Hi, I have a weapon set up and I have it play a sound and a animation when the player clicks the mouse, but it does't work, here is that section of code. Help would be appreciated.
Make_Weapons:
load object "C:dr6 Engine v1datamodelsweaponsold_crossbowHUD.x", 3
rotate object 3, 0, 180, 0
position object 3, 0.5, -1, 2
scale object 3, 15, 15, 15
load image "C:dr6 Engine v1datamodelsweaponsold_crossbowgun_D2.dds", 1
texture object 3, 1
load sound "C:dr6 Engine v1datamodelsweaponsold_crossbowfire.wav", 1
load sound "C:dr6 Engine v1datamodelsweaponsold_crossbowreload.wav", 2
lock object on 3
disable object zdepth 3
loop object 3, 40, 80
if mouseclick()=1
play sound 1
play object 3, 130, 189
endif
return