Jump to content

Recommended Posts

hi

I made a custom weapon which has a long cooldown between hits, much like mobs.

The problem is if you hold down F, during cooldown the character will move toward the target and get as close as possible until the next swing

Is there any way to prevent this dangerous move while still be able to hold down F?

I'm pretty sure Bearger doesn't do that between his clawing but I can't find any clue

thnx

Edited by Hell-met
Link to comment
https://forums.kleientertainment.com/forums/topic/106753-weapon-attack-cooldown/
Share on other sites

Not without messing up other stuff, I think. What happens is that you're giving the player an action to perform and a position to perform it at, and if the character is not at that position, it instead starts a movement action and queues up the intended action. It does this for just about any action. There might be a flag (true/false) you can set on specific actions for whether a player should move to into position if they are not within range.

I don't know how you've set up your weapon (does it have a custom action?), so I can't go into specifics.

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

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...