![]() |
Disable fuel pump doesn't help, the engines wouldn't stop. Fuel pump is only nessesary at altitudes above 2500m.
You are right IsAirborne() can be very usefull in this script. Corrected Version ;) Code:
using System; |
Thanks again!
Copied to my mission script. Is it OK? Code:
using System; |
More to learn...
Quote:
I have noticed that the time counter isnt 100% accurate - the planes appears a couple of minutes soon than what they should... bug? Ross |
Destroys crashlanded aircraft in 5 seconds ))
Code:
public override void OnAircraftCrashLanded(int missionNumber, string shortName, AiAircraft aircraft) Quote:
if (Time.tickCounter() % 72000 == 72000) is wrong probably. |
What the?
someone help me here :S
Main map starts at 05:00 - like the rest of the "sub" maps Code:
using System; He 115 starts at 05:09 - 1 min fast Blenheim starts at 05:13 - 7 min fast!! He 111 starts at 05:18 - 3 min late?! Whats going on :S :S :S |
Quote:
Code:
if (Time.tickCounter() % 72000 == 0) |
Some timings ive got
1 Attachment(s)
Check attachment...
Is the last comment for me or :S |
Quote:
Code:
if (Time.tickCounter() % 72000 == 71999) |
The % is the modulus operator in C# (C, C++ and others)
http://en.wikipedia.org/wiki/Modulo_operation |
Quote:
Code:
if (Time.tickCounter() % A == B) A = 30 * amount second of seconds you want to repeat something B = 30 * amount second you want to offset (delay) from beginning of mission I suppose you want to delay something by 72000 and not by 71999 (although the difference is only 1/30s). So: Code:
if (Time.tickCounter() % 72000 == 0 && Time.tickCounter()-72000==0) |
All times are GMT. The time now is 05:37 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.