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? Regards, Cassandra - V:MP
Castillo Posted March 13, 2013 Posted March 13, 2013 getControlState San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Cassandra Posted March 13, 2013 Author Posted March 13, 2013 Thanks, seem to work fine. Regards, Cassandra - V:MP
Castillo Posted March 13, 2013 Posted March 13, 2013 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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? Regards, Cassandra - V:MP
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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 Regards, Cassandra - V:MP
Castillo Posted March 13, 2013 Posted March 13, 2013 Yes, does it work? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Cassandra Posted March 13, 2013 Author Posted March 13, 2013 Yeah it does. Thanks for the idea. Regards, Cassandra - V:MP
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