Author Topic: [Solved] Function for when you hammer a brick?  (Read 663 times)

I'm making a mod where trust is removed but I want players to not be able to break public bricks.
I can't seem to find the right function for this.
« Last Edit: October 19, 2012, 01:09:35 AM by Electrk »

Note for others, I helped him over RTB.

I kept telling him the magical function he needs is trace(1); but nooooo

I kept telling him the magical function he needs is trace(1); but nooooo

Except I loving did that and none of the functions I tried worked

Got some help from Slicksilver and []----[]

Code: [Select]
package trustLevel {
function getTrustLevel(%obj1, %obj2)
{
if(%obj1.getClassName() $= "Player") {
if(%obj2.getGroup() == BrickGroup_888888.getID() && %obj1.getMountedImage(0) == hammerImage.getID()) {
return Parent::getTrustLevel(%obj1, %obj2);
}
}
return 2;
}
};
activatePackage(trustLevel);

Thanks guys!
« Last Edit: October 19, 2012, 02:13:34 AM by Electrk »

uh

HammerProjectile::OnCollision() is the function, or did Badspot make it non-overwritable?

uh

HammerProjectile::OnCollision() is the function, or did Badspot make it non-overwritable?

late
thanks anyway though