Blockland Forums > Modification Help
How to Make Weapons for Blockland - The Up-To-Date version. (As of 2 years ago)
RFW2:
errrr......i tried to use bits of other scripts to make something like akimbo guns but.....it doesnt work.
help me and free cookies!!!! :cookie: :cookie: :cookie:
Retz:
--- Quote from: RFW2 on October 22, 2009, 09:15:27 AM ---errrr......i tried to use bits of other scripts to make something like akimbo guns but.....it doesnt work.
help me and free cookies!!!! :cookie: :cookie: :cookie:
--- End quote ---
--- Code: ---};
[b]function LeftHandedGunImage::onFire(%this, %obj, %slot)[/b]{
Parent::onFire(%this,%obj,%slot);
if(%obj.getDamagePercent() < 1.0)
%obj.playThread(2, leftrecoil);
}
[b]function AkimboGunImage::onMount(%this, %obj, %slot)[/b]
{
Parent::onMount(%this, %obj, %slot);
//mount lefthanded gun
%obj.mountImage(LeftHandedGunImage, 1);
//%obj.playThread(0, armreadyboth);
}
[b]function AkimboGunImage::onUnMount(%this, %obj, %slot)[/b]
{
Parent::onUnMount(%this, %obj, %slot);
//unmount lefthanded gun
%obj.unMountImage(1);
//%obj.playThread(0, root);
}
[b]function LeftHandedGunImage::onMount(%this, %obj, %slot)[/b]
{
Parent::onMount(%this, %obj, %slot);
%obj.playThread(1, armreadyboth);
[b]}
function LeftHandedGunImage::onUnMount(%this, %obj, %slot)[/b]
{
Parent::onUnMount(%this, %obj, %slot);
}
[b]function AkimboGunImage::onFire(%this,%obj,%slot)[/b]
{
if(%obj.getDamagePercent() < 1.0)
%obj.playThread(2, shiftAway);
Parent::onFire(%this,%obj,%slot);
//%obj.setImageTrigger(1,1);
}
--- End code ---
It is at the very bottom of the script in where you will find the way two guns are being held.. I think. I'm new to this too.
RFW2:
errr wat do i do with this and thanks!!! :D
you get cookies
:cookie: :cookie: :cookie:
RFW2:
wait do i..err add this to the gun script but change the akimbo bits........
tommy631:
please use image shack
photo bucket's bandwidth is stuff and we all know it