Author Topic: Bongos. Need Help With Script  (Read 1138 times)

I'm working on Bongos. I have finished all of the Models and the animation. I just need help with the script.

Heres some pictures of the model:


A single bongo (Top and Bottom)


The finished Bongo Image model (Resized and adjusted)

What i would like the script to do is work like the TF2 Fists. When you left click, it plays the left bongo. When you right click, it plays the right one.

I have looked over the scripts and models of the TF2 fists and have divided my model as such. Like the fists are seperate models, i have built hands into my models with animations. The right hand includes the bongos and the right hand animation. The left hand only has a hand model and left hand hit animation.

It is an instrument, so i want it do do no damage and no hit emmiters. It must also have a 2 different bongo sounds that play on click, not on hit.
(i will find the sounds. i just need a script to put them in.)

If you need anymore detail or have something else in mind. feel free to say it. I hope that somebody can help me this this. I will release this add-on shortly after it is completed and tested. I will include credits to whoever helps with this.

Thank You.



BONGO PHONE
WHO GAVE YOU MY NUMBER?

Sounds cool though, Blockland instruments might be fun.

Opps, wrong button, clicked Quote instead of Modify.

Wow mak nice job! And yes, the smaller bongo makes a higher pitch, just a confirmation.

Please I need help with this...

Please I need help with this...
I recommend private messaging someone who knows how to do it because they might not always see your topic.

This is nice maka.

I'm looking forward to the great things in your future xD

Code: [Select]
package BongoDrums
{
function armor::onTrigger(%this, %obj, %slot, %val)
{
parent::onTrigger(%this, %obj, %slot, %val);
if(%obj.getMountedImage(0) == BongoDrumsImage.getID() && %val)
{
switch(%slot)
{
case 0: %obj.playThread("shiftAway", 2);
case 4: %obj.playThread("leftRecoil", 2);
}
}
}
};
activatePackage(BongoDrums);

Code: [Select]
package BongoDrums
{
function armor::onTrigger(%this, %obj, %slot, %val)
{
parent::onTrigger(%this, %obj, %slot, %val);
if(%obj.getMountedImage(0) == BongoDrumsImage.getID() && %val)
{
switch(%slot)
{
case 0: %obj.playThread("shiftAway", 2);
case 4: %obj.playThread("leftRecoil", 2);
}
}
}
};
activatePackage(BongoDrums);
Can you go into more detail on this please?

Place it at the bottom of your script and try using it