ZupaleX Posted July 23, 2015 Share Posted July 23, 2015 Hello,So I've been trying to create some custom action for a item I created. Basically, I just wanted the character to play a different animation than the default one when using it. Everything works well until the "force attack" button is pressed. I dug up (a lot) in player_controller.lua and found some kind of a solution by using some leftclickoverride etc... but this solution is highly unsatisfying as it is messing up some other basic actions while my item is held by the player. So my question is, how does this "force" button work? Is it something special that has to be added in the component action? On an other note, is there a way to prevent the client from spaming a command? Because for the moment, the force attack has an override which is working but if the key is held, then it repeats the request too fast for the server to handle it properly which leeads to quite some crap. Thanks. Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now