item replacement when RMB is released?

Post Reply
User avatar
Joseph16
Member
Posts: 310
Joined: Tue Dec 06, 2016 05:35
In-game: smb3

item replacement when RMB is released?

by Joseph16 » Post

Ok, here goes. I have a sword. When I right click while holding the sword it will replace the sword with another item, lets call this item sword_blocking. I've got this bit working. Now, what I want, is a function that makes the sword_blocking item get replaced with an item of my choice. So like this:

Holding sword>hold down rightclick replaces with sword_blocking>when I release the rightclick I get another item of my choice.

I know about the controls mod and how it has a function for this type of thing but I couldnt get that working. How would I do this? Any example code will be wonderful. Thanks for your time!
Testin' mines since 1989

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests