Hey guys,
When i make a function and call it from a common event or regular event, the event immediately moves on to the next line before the function is actually done with whatever its doing, how can I prevent this? The only solution ive gotten so far is putting a this.wait() inside the function - but since i dont know how to find out how long a function actually takes before its done; that doesnt seem like the best option.
Any solutions, advice or tips on how to deal with this issue?
Thanks in advance!
When i make a function and call it from a common event or regular event, the event immediately moves on to the next line before the function is actually done with whatever its doing, how can I prevent this? The only solution ive gotten so far is putting a this.wait() inside the function - but since i dont know how to find out how long a function actually takes before its done; that doesnt seem like the best option.
Any solutions, advice or tips on how to deal with this issue?
Thanks in advance!