Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

[Answered] Unable to change unit orientation

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [Answered] Unable to change unit orientation Page: [1]
Login
Message << Older Topic   Newer Topic >>
[Answered] Unable to change unit orientation - 3/8/2020 7:54:37 PM   
Ed49601

 

Posts: 8
Joined: 3/8/2020
Status: offline
While trying tying to create scenarios or editing current ones I cannot change orientation on any units. The function is grayed out.



< Message edited by apache85 -- 3/10/2020 5:05:25 AM >
Post #: 1
RE: Unable to change unit orientation - 3/8/2020 8:59:47 PM   
Randomizer


Posts: 1473
Joined: 6/28/2008
Status: offline
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

(in reply to Ed49601)
Post #: 2
RE: Unable to change unit orientation - 3/8/2020 10:13:23 PM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
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})


_____________________________

Michael

(in reply to Randomizer)
Post #: 3
RE: Unable to change unit orientation - 3/16/2020 6:01:35 PM   
Ed49601

 

Posts: 8
Joined: 3/8/2020
Status: offline
Thank you! Where may I find a listing of LUA commands?

(in reply to michaelm75au)
Post #: 4
RE: Unable to change unit orientation - 3/16/2020 9:10:05 PM   
thewood1

 

Posts: 6529
Joined: 11/27/2005
Status: offline
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.

(in reply to Ed49601)
Post #: 5
RE: Unable to change unit orientation - 3/16/2020 9:18:20 PM   
thewood1

 

Posts: 6529
Joined: 11/27/2005
Status: offline
Here is an example. Just open the lua console and use this:

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

(in reply to thewood1)
Post #: 6
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [Answered] Unable to change unit orientation Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

3.438