1. when trying to rename a point, the attribute 'rename' is not working, but happens to find out 'newname' works;
2. when trying to set a point relative to a unit, I couldn't find the right way (or somewhere in this lua API is broken?) to make it work. Context is: I added a point 'RP-101' via GUI, and in the lua console I tried this:
Code: Select all
ScenEdit_SetReferencePoint({side='blue',name='RP-101',relativeto='Nimitz Carrier', bearingtype=0})Oh, one more question,
3. what does 'bearing' and 'distance' do in this function? and when should I use those attributes. Does it merely provide a shortcut for setting lat and lon?
any reply is appreciated~
