Jump to content

Recommended Posts

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]

Link to post
Share on other sites
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.

Link to post
Share on other sites
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]

Link to post
Share on other sites
  • 7 months later...

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"]

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...