tModLoader Test when the interact button gets pressed.

DeBeast591

Official Terrarian
I was looking at the code for the boxing gloves in the WeaponOut mod to see how they have another attack when you press the interact button. I want to make a weapon similar to Thor's Hammer in the Thorium mod, but I don't know how to do so.

Any help to test when you press the interact button?
 
By "interact button" you mean right click? You can do that by overrideing ModItem.AltFunctionUse.
 
By "interact button" you mean right click? You can do that by overrideing ModItem.AltFunctionUse.
Yes, I say interact because I use a Xbox controller. I have movement stuttering for some reason, all the solutions don't work for me...
Is it like this?

public override void ModItem.AltFunctionUse() {
CODE HERE
}
 
Back
Top Bottom