Im having a bit of trouble with the command to load a new submission, and for it to load repeatedly. Here is the particular bit of script (pinched from an earlier Ataros script):
PHP Code:
public override void OnTickGame()
{
if (Time.tickCounter() % 216000 == 27000)
{
GamePlay.gpPostMissionLoad("missions/Multi/Dogfight/RaBv7/bomberred1_0.mis");
GamePlay.gpHUDLogCenter("Intel: British Bomber Formation, E13 at 4000 metres heading SE");
}
its this part that doesn't seem to work:
if (Time.tickCounter() % 216000 == 27000)
As i understand it this means that every 216000 tick (120 mins) the action should happen (spawns bombers and shows a message), but it is postponed for 27000 ticks (15 mins).
However when I run the mission what happens is after 15 minutes the bombers spawn and the message shows, but it never happens again. I have checked through the logs of various runs of this mission and it is always the same, it only runs once.
Am i doing something wrong, or am I mistunderstanding the settings? What I want to happen is this:
Server starts>at 15 mins-mission and message loads>2hrs after first mission loads (i.e. 2-15 server time)-mission reloads>2 hours later mission loads again... and so on as long as the main mission runs.
ANy help appreciated!