Dzsozi (h03) Posted November 23, 2014 Share Posted November 23, 2014 Is there any method to set a timer, for example 2500 miliseconds and check if a player hit a colshape within this time? So I mean if player keeps hitting colshapes in every 2500 miliseconds then nothing happens, but if the player isn't hit the colshape within this time then write a function? I hope that you understand my question and somebody could help me! Thank you! Link to comment
ChaosMTA Posted November 23, 2014 Share Posted November 23, 2014 You could use this function and a timer to trigger a function that checks if the player is in the colshape and does whatever you want, or if you don't have the element you want to check you can use the second function. isElementWithinColShape getElementsWithinColShape Link to comment
Dzsozi (h03) Posted November 23, 2014 Author Share Posted November 23, 2014 Thank you, I'll try something! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now