Swany Posted January 1, 2019 Posted January 1, 2019 LUA wait() - does it not work within the DCS Scripting engine? Every time I try and use it, it throws a nil at me, no matter how I try and use it (wait(), wait(5), wait(math.random(5)), etc I've tried pre-seeding it with math.randomseed as well, get nil B. "Swany" Swanberg Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0) 32GB Patriot Viper Steel (black, non-RGB) OS installed on a Samsung Evo 970 1TB SSD DCS installed on a Samsun Evo 860 1TB SSD EVGA 2080Ti 11GB EVGA Supernova 720p 750w PS 3 Dell S2716DG monitors in Surround mode (7680x1440) Oculus Rift S VR Thrustmaster Warthog Throttle and Stick Thrusmaster Rudder Pedals assorted button boxes/Arduino boards All drivers always kept up to date (30 days old, max)
shagrat Posted January 1, 2019 Posted January 1, 2019 no, you need to use schedule function and time (game time) to achieve any timed action. Lua environment in DCS is based on the dcs world environment. A good starting point is here: https://wiki.hoggitworld.com/view/Simulator_Scripting_Engine_Documentation Shagrat - Flying Sims since 1984 - Win 10 | i5 10600K@4.1GHz | 64GB | GeForce RTX 3090 - Asus VG34VQL1B | TrackIR5 | Simshaker & Jetseat | VPForce Rhino Base & VIRPIL T50 CM2 Stick on 200mm curved extension | VIRPIL T50 CM2 Throttle | VPC Rotor TCS Plus/Apache64 Grip | MFG Crosswind Rudder Pedals | WW Top Gun MIP | a hand made AHCP | 2x Elgato StreamDeck (Buttons galore)
Swany Posted January 1, 2019 Author Posted January 1, 2019 Had a feeling that was the way it was headed - wait() is just too easy to use *eye roll* Ok, thanks shagrat, much appreciated :) B. "Swany" Swanberg Gigabyte Designare, Intel i9 9900KF (3.6, OC'd to 5.0) 32GB Patriot Viper Steel (black, non-RGB) OS installed on a Samsung Evo 970 1TB SSD DCS installed on a Samsun Evo 860 1TB SSD EVGA 2080Ti 11GB EVGA Supernova 720p 750w PS 3 Dell S2716DG monitors in Surround mode (7680x1440) Oculus Rift S VR Thrustmaster Warthog Throttle and Stick Thrusmaster Rudder Pedals assorted button boxes/Arduino boards All drivers always kept up to date (30 days old, max)
Wrench Posted January 2, 2019 Posted January 2, 2019 Note that while, or about any other loop command other than for won't work either, as DCS actually stop simulation while script is running. Carrier Script.
Recommended Posts