relativeto not working in SetReferencePoint
Posted: Fri May 05, 2023 12:49 am
Hey, guys, I've been looking at here and find some issues:
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:
the above code did nothing, and no error pops up, then I added 'bearing' and 'distance' in the end , still no good.
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~
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~