Ramboo Posted October 9, 2011 Share Posted October 9, 2011 (edited) Hi guys. another newb question (still newbie in scripting) I need to start setted map when map finishes. I ve been looking this in resources for all day and didn't find the resolution. So i need : Check through eventhandler if map is finished (time = 0 or there is a winner). then, before newmap votepoll appears, the setted map by admin have to start. Help pleas =) Edited October 9, 2011 by Guest Link to comment
arezu Posted October 9, 2011 Share Posted October 9, 2011 Which gamemode are you running? if you are running race, then it should automaticly do so for you.. shouldn't it? Link to comment
Ramboo Posted October 9, 2011 Author Share Posted October 9, 2011 Which gamemode are you running? if you are running race, then it should automaticly do so for you.. shouldn't it? and yes, it is Race gamemode. yes it should, but i wish to understand the way it works, you know. kinda, i created my own setnextmap system. Link to comment
arezu Posted October 13, 2011 Share Posted October 13, 2011 addEvent("onRaceStateChanging", true) addEventHandler("onRaceStateChanging", getRootElement(), function(newStateName) if(newStateName == "PostFinish")then -- when only one player left alive. end end) i think that was how i used to do it.. i dont remember. 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