prccowboy Posted March 27, 2018 Posted March 27, 2018 (edited) Disclaimer: I didn't find this information anywhere, so if it is already known then just blame it on the scripting newbie (I only started scripting a few days ago). Nevertheless, since I couldn't find it, I figured maybe I should share it with others. This is using 2.5OBu5 (I don't know how it worked before) I was attempting to write a simple script to dynamically task ai to embark/disembark using "vanilla" DCS without any other workarounds (like CTLD). I discovered that the information available regarding the DCS task for embarking/disembarking appeared to be wrong (or at least didn't work for me), so I deconstructed the process from scratch and found that the embark/disembark tasking should use a different structure/syntax. Instead of using a "disembarkFromTransport" task given to the infantry unit, a "'Disembarking" task should be given to the transporting aircraft. Using this DCS task, I have successfully added dynamic embark/disembark tasking to groups. edit: I removed my example script and just replaced it with a description of the working DCS Disembarking task. BTW, credit to the Hoggit website for the information about DCS tasks that led me to this discovery in the first place. Task: Disembarking Specifies the location an infantry group that is being transported by helicopters will be unloaded at. Used in conjunction with the Embarking and EmbarkToTransport tasks. Disembarking = { id = "Disembarking", params = { x = Vec2.x, y = Vec2.y, duration = time, groupsForEmbarking = array of groups (to DISembark), distributionFlag = boolean, distribution = array of unitIds } Edited March 30, 2018 by prccowboy
Recommended Posts