Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

[Q] minor LUA - Unit structure inconsistency

 
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 >> [Q] minor LUA - Unit structure inconsistency Page: [1]
Login
Message << Older Topic   Newer Topic >>
[Q] minor LUA - Unit structure inconsistency - 9/2/2015 8:04:44 PM   
DeSade

 

Posts: 156
Joined: 3/1/2004
Status: offline
Some fields of Unit structure (eg. heading, proficiency, holdfire etc) are possible to set by ScenEdit_AddUnit and ScenEdit_SetUnit, but are not exposed to ScenEdit_GetUnit function.
As a result, you can set unit heading, but you cant check it later. Also, setting value of those field for existing unit is possible only via SetUnit function, not via unit property, for example following code works:

x = ScenEdit_GetUnit({side="Blue", name="F-15C Eagle"})
x.name = "F15"

but x.heading = 4 returns error.

Not sure if its bug or feature request :) Anyway, I found possibility to check current heading of unit or proficiency useful :)

< Message edited by Sunburn -- 1/16/2017 10:05:32 AM >
Post #: 1
RE: minor LUA - Unit structure inconsistency - 9/2/2015 10:05:32 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Will have the guys take a look.

Mike

_____________________________


(in reply to DeSade)
Post #: 2
RE: minor LUA - Unit structure inconsistency - 1/14/2017 8:30:56 PM   
Dimitris


Posts: 12507
Joined: 7/31/2005
Status: online
Dev response:
quote:

Some properties are too complex and are better served by the SetUnit() function. Most of the properties for the unit wrapper are already aligned.


_____________________________


(in reply to mikmykWS)
Post #: 3
RE: minor LUA - Unit structure inconsistency - 1/15/2017 1:05:18 AM   
michaelm75au


Posts: 13026
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
FYI. There will be 40 unit properties that will be available in future; some will only be accessed for reading.


_____________________________

Michael

(in reply to Dimitris)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [Q] minor LUA - Unit structure inconsistency 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

0.118