Cassandra Posted March 13, 2013 Share 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? Link to comment
Cassandra Posted March 13, 2013 Author Share Posted March 13, 2013 Thanks, seem to work fine. Link to comment
Cassandra Posted March 13, 2013 Author Share Posted March 13, 2013 Sorry for bothering but I've another question. How to change a timer's interval? Link to comment
Castillo Posted March 13, 2013 Share Posted March 13, 2013 I'm not sure, but I think the only way is killing the timer and starting it again. Link to comment
Cassandra Posted March 13, 2013 Author Share 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 Link to comment
Cassandra Posted March 13, 2013 Author Share Posted March 13, 2013 Yeah it does. Thanks for the idea. 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