Veteran66 Posted January 3, 2020 Posted January 3, 2020 Hi all i look for a script: unit is 5 min in zone so i need a timer script any ideas? German WW2 Radio calls Mod: https://www.digitalcombatsimulator.com/en/files/2161798/
Grimes Posted January 3, 2020 Posted January 3, 2020 Principles are the same for triggers and scripting. Recheck if the unit is in the zone at a given rate and count up if it is. Once you reach the time limit do the action, if it goes out of the zone reset the count value. For the sake of simplicity this is what it looks like with triggers Repetitive>Unit in Zone> Flag 1 increase 1 Switched Condition>Flag 1 is more than 300 > Do whatever action Switched Condition > Unit out of Zone> Flag 1 set to False (off) The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Veteran66 Posted January 3, 2020 Author Posted January 3, 2020 good idea, thx Grimes German WW2 Radio calls Mod: https://www.digitalcombatsimulator.com/en/files/2161798/
Recommended Posts