Help with scripting, as above need help |
Help with scripting, as above need help |
10 May 2011, 0:28
Post
#1
|
|
Group: Members Posts: 5 Joined: 13 April 2010 From: dorset Member No.: 936 emp in human form. |
I've been trying to script a map to use on rise of the reds, 8 players.
I wanted to script it so that every 30 seconds players receive $10000 until they had $1,000,000 where as the game would end. I have scripted a text intro, then the money script, promotions and finally a broken radar script. Problem is, either the map works with (a) broken radar script working but nothing else or ( all 4 work and the game dies a "mismatch" within 30 seconds. Need help trying to get it working please anyone? PS:Sorry i've just realised its in the wrong forum-sub forum This post has been edited by stealthg36c: 10 May 2011, 0:32 |
|
|
18 May 2011, 10:59
Post
#2
|
|
Group: Members Posts: 584 Joined: 29 June 2009 From: Thailand Member No.: 222 |
Use frame timer instead of second timer. Actual frame/second on each computer is not a fixed value (but humans barely notice as difference might be in millisecond). During lag, some computers might have slower frame/second. That causes mismatch (as the same script would be activate at different time on each computer).
By estimate: 30 frames = 1 second -------------------- CASOJIN
|
|
|
22 May 2011, 0:50
Post
#3
|
|
Group: Members Posts: 5 Joined: 13 April 2010 From: dorset Member No.: 936 emp in human form. |
Use frame timer instead of second timer. Actual frame/second on each computer is not a fixed value (but humans barely notice as difference might be in millisecond). During lag, some computers might have slower frame/second. That causes mismatch (as the same script would be activate at different time on each computer). By estimate: 30 frames = 1 second Thank you, i'll try that and let you know how it went |
|
|
Lo-Fi Version | Time is now: 26 April 2024 - 15:06 |