Mangrove Jack Posted December 19, 2019 Posted December 19, 2019 New to mission build so got lots to learn. I have managed to get a JTAC (Soldier) to lase a specific vehicle (used CTLD). On vehicle reaching a trigger I want to deactivate the JTAC which I have done through the editor. On deactivation I want a specific message to appear and that works. However I also get 2nd message that JTAC is "KIA" which it was not. Is there a way to stop the KIA message which seems to be built in to the editors Deactivate. Intel i7-7700@3.6GHz 16GB NVIDIA GeForce GTX1060 6GB
Grimes Posted December 19, 2019 Posted December 19, 2019 That is built into CTLD. https://github.com/ciribob/DCS-CTLD/blob/master/CTLD.lua#L4964 When checking the status of each JTAC it will display that message if the unit no longer exists. It is expecting for the unit to be killed, but deactivation and being killed are the same for how it is checking the status of the unit. Could just comment out that line in your ctld.lua file with -- in front of it to prevent it from appearing. 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
Mangrove Jack Posted December 19, 2019 Author Posted December 19, 2019 That is built into CTLD. https://github.com/ciribob/DCS-CTLD/blob/master/CTLD.lua#L4964 When checking the status of each JTAC it will display that message if the unit no longer exists. It is expecting for the unit to be killed, but deactivation and being killed are the same for how it is checking the status of the unit. Could just comment out that line in your ctld.lua file with -- in front of it to prevent it from appearing. OK Grimes I understand what you mean. But never looked in code before your post so 2 questions. If I comment out that line then whenever CTLD is called in other missions this same scenario would eventuate true? and If new code released (I do not know chance) then this comment out would be lost? Intel i7-7700@3.6GHz 16GB NVIDIA GeForce GTX1060 6GB
Grimes Posted December 20, 2019 Posted December 20, 2019 Answer for both questions is basically the same. Its just a local file. If you modify it then you will have to reload it in the mission for the updated one to be used. Any existing mission with CTLD will have whichever version of the file that was loaded into it. So you'd have to go back and update the file for those missions to see the change. Likewise if there is an update to ctld you will have to download it from github and put it in the missions to see the updates. 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
Mangrove Jack Posted December 20, 2019 Author Posted December 20, 2019 ok thanks Intel i7-7700@3.6GHz 16GB NVIDIA GeForce GTX1060 6GB
Mangrove Jack Posted December 21, 2019 Author Posted December 21, 2019 A further question on deactivation: I now know I cannot re-activate a deactivated unit. However I would like to simulate an extraction process after deactivation or even when JTAC gets found by Ground Escort Chopper and fired upon before deactivation occurs. This could either be the JTAC actually survives or is wounded or body bag via say a chopper out (Medivac?). Is there a way to simulate the original JTAC unit call it JTAC2 being reactivated in a different location for the extraction? Intel i7-7700@3.6GHz 16GB NVIDIA GeForce GTX1060 6GB
Recommended Posts