Author Topic: I want to make weapon.  (Read 847 times)

How i can add reload animation and bolt animation(sniper rifle) (Animations are already done in ms3d)?

Whatever you named the animations as, you put the name in the states in the script ion "stateSequence", should be something like this, you may have to add your own state:



Whatever you named the animations as, you put the name in the states in the script ion "stateSequence", should be something like this, you may have to add your own state:




Okay, but how can i add reloading sound?

Okay, but how can i add reloading sound?
First create your sound datablock:
Code: [Select]
datablock AudioProfile(SuperAwesomeSound)
{
   filename    = "./MySound.wav";
   description = AudioClosest3d;
   preload = true;
};
And then input this in the proper place in the states:
Code: [Select]
stateSound[NUMBER] = SuperAwesomeSound;
« Last Edit: May 12, 2015, 08:20:22 AM by jes00 »

First create your sound datablock:
Code: [Select]
datablock AudioProfile(SuperAwesomeSound)
{
   filename    = "./MySound.wav";
   description = AudioClosest3d;
   preload = true;
};
And then in put this in the proper place in the states:
Code: [Select]
stateSound[NUMBER] = SuperAwesomeSound;

Thx :D