#DaNiLiN Posted August 19, 2018 Share Posted August 19, 2018 Qual seria a forma correta de fazer contador do marker contar por player dentro. Ex: a cada player que entra dentro de certo marker começa a contar 1 segundo a mais. Link to comment
DNL291 Posted August 27, 2018 Share Posted August 27, 2018 (edited) Acho que é isto que você quer dizer: local addtSecs = 0 addEventHandler( "onMarkerHit", root, function ( hitPlayer ) if getElementType(hitPlayer) == "player" then addtSecs = addtSecs + 1000 -- 1000ms : 1 segundo end end ) addEventHandler( "onMarkerLeave", root, function ( hitPlayer ) if getElementType(hitPlayer) == "player" then addtSecs = addtSecs - 1000 end end ) Edited August 27, 2018 by DNL291 1 Link to comment
#DaNiLiN Posted September 27, 2018 Author Share Posted September 27, 2018 isso msm. Obrigado 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