Jigglypuff Posted March 19, 2019 Share Posted March 19, 2019 Hello, tell me how to make a timer. So that at the expiration of his player teleported to a certain point. Link to comment Share on other sites More sharing options...
Z8pn Posted March 19, 2019 Share Posted March 19, 2019 setTimeout(function(){ //Your Code },1000) // Change 1000 to ur duration u want to wait ( in ms ) Link to comment Share on other sites More sharing options...
robearded Posted March 19, 2019 Share Posted March 19, 2019 If you're using C# check this out: https://wiki.gtanet.work/index.php?title=Task Link to comment Share on other sites More sharing options...
Jigglypuff Posted March 19, 2019 Author Share Posted March 19, 2019 5 часов назад, Z8pn сказал: setTimeout(function(){ //Your Code },1000) // Change 1000 to ur duration u want to wait ( in ms ) Thank you 1 час назад, robearded сказал: If you're using C# check this out: https://wiki.gtanet.work/index.php?title=Task JS, but thank you. Link to comment Share on other sites More sharing options...
Jigglypuff Posted March 19, 2019 Author Share Posted March 19, 2019 7 часов назад, Z8pn сказал: setTimeout(function(){ //Your Code },1000) // Change 1000 to ur duration u want to wait ( in ms ) but how to make the player teleport to a certain point at the end of the timer? Link to comment Share on other sites More sharing options...
Z8pn Posted March 20, 2019 Share Posted March 20, 2019 Place your code in which you change the position inside the timeout, ( where i did // Your Code ) Link to comment Share on other sites More sharing options...
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