Author Topic: Rp Tool Problems.  (Read 1468 times)

I'm making Tools for my minecraft rp with onHit events, and ran into a few problems with them.

1. Unlike most tools/items, when you look up or down the tool either moves to the center of your screen of off the screen.
2. The onHit event shows up in the input list, but doesn't work.

If you don't fully understand what i'm talking about and want to see for yourself, here is the package with the tool in it:
http://www.mediafire.com/?hizm372m2i41tb5
Thanks.

Edit: Solved first problem... mountPoint issue.
NewEdit:
One other problem.
The fire animations don't work anymore when in first person. The item just sits there when you attack instead of moving up and down.
« Last Edit: June 02, 2011, 01:19:00 PM by eddierocks2000 »

If you are looking for a pickaxe or lumberjack axe they already exist, with OnHit events.

What's thisss?

I don't know...
That never showed up when I opened it.

What's thisss?
Why are you coding in Microsoft .NET?

NewEdit:
One other problem.
The fire animations don't work anymore. The item just sits there when you attack instead of moving up and down.
Does it not animate in 3rd or 1st person?

Does it not animate in 3rd or 1st person?
Sorry, forgot to specify.
It works in third but not in first.

Iban is banned(Again...), he probably can't help you anymore so I might have to service.

The animation you're using is a player based animation, when you assign
Code: [Select]
'offset = "*Three number besides that 0*";'in you're datablock: ShapeBaseImageData, it makes your Item have a offset of the numbers that you assigned and have a 'Different object' in first-person. This makes it so the animation doesn't show up in first-person.

Someone correct me if I'm wrong.
« Last Edit: June 02, 2011, 05:50:29 PM by sluggy »


I meant to say "eyeOffset", if you set this to "0 0 0" or "0" like this;
Code: [Select]
eyeOffset = "0 0 0";it should fix you're problem.

Excuse my bad explaining skills.

I meant to say "eyeOffset", if you set this to "0 0 0" or "0" like this;
Code: [Select]
eyeOffset = "0 0 0";it should fix you're problem.

Excuse my bad explaining skills.

Yeah I knew what you meant.
Thanks.
Any ideas about the other issue?

This has always been my best way to fix something:
reference the differences between a script that has your same problem, and one that works fine.


I'm a little late, but since Iban's been, well, banned...


Code: [Select]
function [ImageName]::onFire(%this, %obj, %slot)
{
Parent::onFire(%this, %obj, %slot);
%obj.playThread(2, "armAttack");
}
function [ImageName]::onStopFire(%this, %obj, %slot)
{
%obj.playThread(2, "root");
}

For example, for the sword this would be SwordImage::onFire and SwordImage::onStopFire.