-7up- 0 Posted July 3, 2002 Ok.. I've decided to make a map for each Island (except the desert) and I'm going to make a race!!! The only problem is.. I need to know how to make a condition for time ... in other words.. I wanna return the elapsed time from the variable "Time" and after 10 seconds has passed the race begins... how would I put that in a condition statement so that no one could move until the race begins? I'm new to doing these scripts so... I need a lot of help is there a way to post text on the screen in the center.. such as numbers 10, 9 , 8 , 7 etc... to show when the race will begin? Any help will be very appreciated thanks!!! -7up- Share this post Link to post Share on other sites
KingN 251 Posted July 3, 2002 Make a 'countdown.sqs' text file in the folder where your mission is. Then put: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">titleCut ["10","PLAIN", 1] ~1 titleCut ["9","PLAIN", 1] ~1 titleCut ["8","PLAIN", 1] ~1 titleCut ["7","PLAIN", 1] ~1 titleCut ["6","PLAIN", 1] ~1 titleCut ["5","PLAIN", 1] ~1 titleCut ["4","PLAIN", 1] ~1 titleCut ["3","PLAIN", 1] ~1 titleCut ["2","PLAIN", 1] ~1 titleCut ["1","PLAIN", 1] ~1 titleCut ["GO!","PLAIN", 1] <span id='postcolor'> This is just an example ofcourse. Then, to make this script work in the game itself, write in your players init line [] exec "countdown.sqs". Now it will make a countdown in the beginning of your race. Btw, I think that you will have trouble with disabling moving before the the race is supposed to start. Set the fuel to 0 for all the cars. Use Player setfuel 1 to set fuel to full when the race is supposed to start. Share this post Link to post Share on other sites
-7up- 0 Posted July 3, 2002 ok... tell me if you think this would work.. i have no freakn clue.. especially because I can't try it out yet.. I lost my friggen cd and i just formatted last week... so I really can't put it in yet.. I'm writing all the .sqs filez and doing the scripting now though  If you see errors .. PLEASE PLEASE tell me.. I might add another 12 cars for big cross country racing...  Have any of you guyz watched "Cannonball" the race accross the U.S.A?  this is basically what I'm trying to mimic.. except no police cars  although.. I could add a helicopter chasing the cars trying to blow them up... hmmmm  ?_time < 10: canMove car1=false;canMove car2=false;canMove car3=false;canMove car4=false;canMove car5=false;canMove car6=false;canMove car7=false;canMove car8=false;canMove car9=false;canMove car10=false;canMove car11=false;canMove car12=false; ?_time ==0: 0 setRadioMsg "10" ?_time == 1: 0 setRadioMsg "9" ?_time == 2: 0 setRadioMsg "8" ?_time == 3: 0 setRadioMsg "7" ?_time == 4: 0 setRadioMsg "6" ?_time == 5: 0 setRadioMsg "5" ?_time == 6: 0 setRadioMsg "4" ?_time == 7: 0 setRadioMsg "3" ?_time == 8: 0 setRadioMsg "2" ?_time == 9: 0 setRadioMsg "1" ?_time == 10: 0 setRadioMsg "GO GO GO!!!" ?_time > = 10: canMove car1=true;canMove car2=true;canMove car3=true;canMove car4=true;canMove car5=true;canMove car6=true;canMove car7=true;canMove car8=true;canMove car9=true;canMove car10=true;canMove car11=true;canMove car12=true; Share this post Link to post Share on other sites
-7up- 0 Posted July 6, 2002 I could really use some feedback please.... I'd like to help the community but without some help.. i cannot.. I already have another map 90% complete.... but these little things need to be clear to me so i can Complete the maps for everyone to play... and have fun Share this post Link to post Share on other sites