Cassandra Posted March 13, 2013 Posted March 13, 2013 I tried finding it on the getPedMoveState but it's not there. Can someone point me in the right direction to do so?
Cassandra Posted March 13, 2013 Author Posted March 13, 2013 Sorry for bothering but I've another question. How to change a timer's interval?
Castillo Posted March 13, 2013 Posted March 13, 2013 I'm not sure, but I think the only way is killing the timer and starting it again.
Cassandra Posted March 13, 2013 Author Posted March 13, 2013 I see. Will something like this work? function infectantsSpawnerStart(player) SpawnTime = math.random(5000, 10000) SpawnTimer = setTimer(infectantSpawnTimer, SpawnTime, 0, player) end function infectantSpawnTimer(player) killTimer(SpawnTimer) outputChatBox("An infectant should spawn now", player) if(isElement(player)) then infectantsSpawn(player) SpawnTime = math.random(5000, 10000) SpawnTimer = setTimer(infectantSpawnTimer, SpawnTime, 0, player) end end
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