Jump to content
Sign in to follow this  
SpaydCBR

How do I create a round restart?

Recommended Posts

This is my first post on these forums so, hello. I am making an attack and defend mission just for practice. I basically have the mission done but what I need is a script I guess that will restart the round after somebody wins the previous round. Also maybe a round counter or scoreboard would be nice. Can I get any help with this? Thank you

Share this post


Link to post
Share on other sites

You will need to take note of how everything should be at the start of a round, then you will have to replicate it via script. It's not an easy task if you're not used to scripting.

I would make a script that records all the editor objects' positions, health, direction, classnames, etc; then when the round restarts, delete all of the recorded objects, and recreate them via createVehicle, or createUnit while using the other recorded info the make them look like the original objects.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×