Using CheckMove with a Dash function

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
andreboomer
Posts: 21
Joined: Wed Feb 16, 2022 9:04 pm
Graphics Processor: nVidia with Vulkan support

Using CheckMove with a Dash function

Post by andreboomer »

I'm currently using a recoil function to cause the player to dash, on certain occasions(ie, dashing into an enemy on terrain with slopes) it causes the game to freeze. Could I use CheckMove to fix this?
What I currently wrote is

if (!CheckMove(Pos.XY + Vel.XY))
return;

but I'm not sure if this is really helping. Could anyone help me with a solution?
Thanks.
Post Reply

Return to “Scripting”