View Single Post
  #142  
Old 05-20-2011, 10:16 AM
SYN_Flashman SYN_Flashman is offline
Approved Member
 
Join Date: Feb 2011
Posts: 48
Default

I have just had a thought about scripts that start submissions.... can the submissions themselves have scripts? I think they can: when first testing the submission script i accidentally left a script in one of the submissions and it took ages for me to work out what the hell was going on!

Im at work so I can't test this but here is an idea to allow a mission to repeat every 2 hours or so. A few posts up I related how im having trouble doing this with the repeat part of the script but an alternative method might be this:

MAIN MISSION SCRIPT: Spawn bombergroup1 submission after 15 mins server time. NO repeats

15 mins main server time > bombergroup1 submission starts. It has a script itself which says: Spawn bombergroup 1 after 2 hours (i.e. it starts itself again)

2hr 15 min main server time> bombergroup1 submission starts again...

If this works correctly then so long as the server is running every two hours the bombergroup1 submission will spawn.

the bombergroup1 submission will last approx 90 mins plus however long it takes to despawn the landed/crashed planes (using Atatos et als script..which works well!). In other words it should finish and the aircraft despawn BEFORE it starts again.

Questions:

1) has anyone tried this? (I will later... damn I hate work!!)

2) when the submission starts, does it start its own tickcount from its creation, or does it 'read' the master mission tick count?

This is important because if it starts its own tickcount then the second time the bomber group spawns it will be 2 hours after the first. If however it uses the master mission tickcount it might start after 2 hours server time, but this is only 1 hr 45 after the first submission starts. This might mean that the next subsequent submission will not start at all.

3) Am i making any sense whatsoever?

PS I know that the tickcount isn't truly accurate with regards to time, but its close enough for my needs.
Reply With Quote