CougarFFW04 Posted February 29, 2020 Posted February 29, 2020 Hi everyone, In the Mission Editor interface there is a check box allowing to hidden objet on map. When we do spawn dynamically static object, is there any option to do the same ? Thanks
JUICE-AWG Posted February 29, 2020 Posted February 29, 2020 After placing the unit, select Advanced (Waypoint Actions), click ADD, and select Perform Command, and set as Invisible. Let us know if that works! "There are only two types of aircraft, Fighters and Targets." Doyle "Wahoo" Nicholson [sIGPIC][/sIGPIC]
CougarFFW04 Posted March 1, 2020 Author Posted March 1, 2020 After placing the unit, select Advanced (Waypoint Actions), click ADD, and select Perform Command, and set as Invisible. Let us know if that works! Ho sorry I was speaking about scripting possibility. Thanks anyway.
JUICE-AWG Posted March 1, 2020 Posted March 1, 2020 Ho sorry I was speaking about scripting possibility. Thanks anyway. Hey, thanks for the feedback...scripting is way above my paygrade! If you figure it out, post what you learned here and we'll all get smarter for it! :pilotfly: "There are only two types of aircraft, Fighters and Targets." Doyle "Wahoo" Nicholson [sIGPIC][/sIGPIC]
Jagohu Posted October 26, 2020 Posted October 26, 2020 Agreed, we need this option. It is present for Groups, but not for static units through LUA scripting. Yet it is allowed via the Mission Editor, there's a discrepancy there. @BIGNEWY : would it be possible to align the behavior of the ME and the possibilities of the LUA ? Right now the hidden=true bit doesn't do anything. Thank you! local staticObj = { ["heading"] = 4.3458698374659, ["groupId"] = 999, ["shape_name"] = "rezky", ["type"] = "REZKY", ["unitId"] = 998, ["rate"] = 100, ["name"] = "Iran_BandarAbbas_3", ["category"] = "Ships", ["y"] = -2685.7201420976, ["x"] = 107644.82150389, ["dead"] = false, [color=#f1c40f]["hidden"] = true,[/color] } coalition.addStaticObject(34, staticObj) from the .miz file a similar thing proving it is already inside the mission file only not triggerable from LUA: ["static"] = { ["group"] = { [1] = { ["heading"] = 0, [color=#f1c40f]["hiddenOnPlanner"] = false,[/color] ["groupId"] = 2, [color=#f1c40f]["hidden"] = true,[/color] ["units"] = { [1] = { ["category"] = "Ships", ["type"] = "LHA_Tarawa", ["unitId"] = 2, ["y"] = -2841.4109776284, ["x"] = 106653.0378987, ["name"] = "DictKey_GroupName_13", ["heading"] = 0, }, -- end of [1] }, -- end of ["units"] ["y"] = -2841.4109776284, ["x"] = 106653.0378987, ["name"] = "DictKey_GroupName_13", ["route"] = { ["points"] = { [1] = { ["alt"] = 0, ["type"] = "", ["name"] = "", ["y"] = -2841.4109776284, ["speed"] = 0, ["x"] = 106653.0378987, ["formation_template"] = "", ["action"] = "", }, -- end of [1] }, -- end of ["points"] }, -- end of ["route"] ["dead"] = false, }, -- end of [1] }, -- end of ["group"] }, -- end of ["static"]
OzDeaDMeaT Posted June 6, 2024 Posted June 6, 2024 @BIGNEWY It has been a while since this was looked at. We are looking for a way to hide spawned static objects from the DCS API. Can we PLEASE have this added to the API if its not possible yet? CPU: i9-12900K @ 4.9Ghz M/B: MSI MEG z690 Ace RAM: 128GB Video Card: MSI RTX 4090 Suprim Liquid X VR: Varjo Aero
Recommended Posts