Anklebiter Posted September 4, 2018 Share Posted September 4, 2018 Question: I really want a train to be stopped at a station, and then to start later. Can't seem to get a Normandy train to stop, and read on a forum that it was not possible. So I was thinking build a train using static objects, set time flags and late activation for the real train. Hide static object and active live train in its place. Might be hard to line up, but hoping would work. Do we have a script handy to hide static objects? Thanks, Link to comment Share on other sites More sharing options...
feefifofum Posted September 4, 2018 Share Posted September 4, 2018 You should be able to use the destroy function to remove the static train - https://wiki.hoggitworld.com/view/DCS_func_destroy Last time I tried, which was admittedly some time ago, trains also couldn't be late activated unfortunately. Make sure to do a quick test before you get too deep into scripting something. THE GEORGIAN WAR - OFFICIAL F-15C DLC Link to comment Share on other sites More sharing options...
Anklebiter Posted September 4, 2018 Author Share Posted September 4, 2018 Thanks. I saw the destroy function but assumed it would leave a dead object in its place. I planned to test the late activation today. I will report back if it works. Link to comment Share on other sites More sharing options...
Anklebiter Posted September 4, 2018 Author Share Posted September 4, 2018 (edited) Late activation seems to be working fine. Pops in after 10 seconds from a dead stop and then picks up speed as it goes. Awesome sauce! Edit: Cool. The whole thing works. Too bad about the workaround, but we can have a train sitting at the station now and have it start any time we want. Edited September 4, 2018 by Anklebiter Link to comment Share on other sites More sharing options...
TOViper Posted December 28, 2019 Share Posted December 28, 2019 Question: I really want a train to be stopped at a station, and then to start later. Can't seem to get a Normandy train to stop, and read on a forum that it was not possible. So I was thinking build a train using static objects, set time flags and late activation for the real train. Hide static object and active live train in its place. Might be hard to line up, but hoping would work. Do we have a script handy to hide static objects? Thanks, To answer you question and to leave information for other mission builders: You may use StaticObject.getByName('myStaticObject'):destroy() Works like a charm. Visit https://www.viggen.training ...Viggen... what more can you ask for? my computer: AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1 Link to comment Share on other sites More sharing options...
Recommended Posts