Is there any way to get a delay in a function

From what I know, you can cast from macro when you want without any problem. Like Vaei say, open a new question to let us know what you try to achieve because I’m pretty sure this isn’t that hard to achieve with custom event/macros.

If you want send a link of the new question here in the comment.