[Answered] Unable to change unit orientation (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support



Message


Ed49601 -> [Answered] Unable to change unit orientation (3/8/2020 7:54:37 PM)

While trying tying to create scenarios or editing current ones I cannot change orientation on any units. The function is grayed out.





Randomizer -> RE: Unable to change unit orientation (3/8/2020 8:59:47 PM)

You can only change the orientation of facilities using the drop-down menu. For units/groups, set a course and run the scenario until they conform. Pause, reset the scenario time and then save.

-C




michaelm75au -> RE: Unable to change unit orientation (3/8/2020 10:13:23 PM)

During design, you can also use the Lua console to set the heading (current and desired) of other units
quote:

ScenEdit_SetUnit({name='AOE 421 Sagami', guid='004aa55d-d553-428d-a727-26853737c8f4',HEADING=190, DESIREDHEADING=190})




Ed49601 -> RE: Unable to change unit orientation (3/16/2020 6:01:35 PM)

Thank you! Where may I find a listing of LUA commands?




thewood1 -> RE: Unable to change unit orientation (3/16/2020 9:10:05 PM)

There is an entire section on Lua:

https://www.matrixgames.com/forums/tt.asp?forumid=1681

In the pinned threads there is a section for Lua resources. That will lead you to detailed lua documentation. I'll start the timer on someone coming in and saying its too disorganized to use, but it is all in there.

http://commandlua.github.io/

Best bet is to just ask in the lua section and someone will more than likely show you an example. It is a part of the unit descriptor labeled heading and I think you would use setunit. But better lua people than I can show you.




thewood1 -> RE: Unable to change unit orientation (3/16/2020 9:18:20 PM)

Here is an example. Just open the lua console and use this:

ScenEdit_SetUnit({side="United States", unitname="USS Test", heading=0})




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.015625