Quote:
Originally posted by LinksReturn
I've looked at it, but i'm not sure how I would use it "triggeraction x,y,action,params; triggers a ‘if (action<action>)...’ on the objects on (x,y)"
params? O.o, and how would i apply it to the hammer
|
Use a triggeraction on the x/y that you use the hammer on (use testnpc first to make sure theres an npc there), then in the npc you need to recognize if its been hit by the hammer:
if (action
actionname) {
if (this.hit<
insertnumhere)
this.hit++;
else {
this.hit=0;
commands to run when its been hit num times;
}