Set*MoveType data revision
Posted: 24 Nov 2015, 21:46
I recently tried working with the 3 MoveCtrl.Set*MoveTypeData functions, i was wondering why are there 3 different ones despite the usage being the same?
Infact SetGroundMoveTypeData and SetAirMoveTypeData share many of the same keys.
However SetGunshipMoveTypeData does not, i find this odd and it is a problem for me, i could work around it ofcourse but its a very rough edge.
Unless there is some good reason for keeping the 3 seperated, i suggest merging them all into one function and having they keys for non-gunships being applicable to gunships too.
I cant even make sense of the gunship type keys.
Also i have noticed that when an error occurs it prints an error message with some non-ascii, character at the end.
Another thing, Spring.MoveCtrl.SetGroundMoveTypeData (unit, "floatOnWater", true) gives an error that key is incompatible for this movetype data, whats the story behind this?
It would be good if an engine dev took a bit of time and have a second look at those functions.
I would really apreciate it tough if SetAirMoveTypeData could be applied to gunships too.
Infact SetGroundMoveTypeData and SetAirMoveTypeData share many of the same keys.
However SetGunshipMoveTypeData does not, i find this odd and it is a problem for me, i could work around it ofcourse but its a very rough edge.
Unless there is some good reason for keeping the 3 seperated, i suggest merging them all into one function and having they keys for non-gunships being applicable to gunships too.
I cant even make sense of the gunship type keys.
Also i have noticed that when an error occurs it prints an error message with some non-ascii, character at the end.
Another thing, Spring.MoveCtrl.SetGroundMoveTypeData (unit, "floatOnWater", true) gives an error that key is incompatible for this movetype data, whats the story behind this?
It would be good if an engine dev took a bit of time and have a second look at those functions.
I would really apreciate it tough if SetAirMoveTypeData could be applied to gunships too.