[1307.14] SetReferencePoint Lua Issue
Posted: Sun May 28, 2023 1:50 am
reposting...
Hey, guys, I've been looking at the doc doc and find some issues:
1. when trying to rename a point, the attribute 'rename' is not working, but happen to find out 'newname' works, so probably need to update the doc.
2. after manually adding a rp on the map, its bearingtype is 'Fixed', but there's no relative unit, so this 'Fixed' might get people confused, different from the one in 'Fixed or Rotating'.
3. there are three effects that I couldn't achive from console with Lua, namely,
a.manually add a rp on the map, I want to make it relative to a unit, say 'Nimitz Carrier'
is not working
b.manually add a rp on the map, set it Fixed to Nimitz Carrier, now I want to make it Rotating to that Nimitz Carrier[vice versa, from Rotating to Fixed]
is not working
Oh, one more question,
4. 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?
Hey, guys, I've been looking at the doc doc and find some issues:
1. when trying to rename a point, the attribute 'rename' is not working, but happen to find out 'newname' works, so probably need to update the doc.
2. after manually adding a rp on the map, its bearingtype is 'Fixed', but there's no relative unit, so this 'Fixed' might get people confused, different from the one in 'Fixed or Rotating'.
3. there are three effects that I couldn't achive from console with Lua, namely,
a.manually add a rp on the map, I want to make it relative to a unit, say 'Nimitz Carrier'
Code: Select all
ScenEdit_SetReferencePoint({side='blue',name='RP-101',relativeto='Nimitz Carrier', bearingtype=0})b.manually add a rp on the map, set it Fixed to Nimitz Carrier, now I want to make it Rotating to that Nimitz Carrier[vice versa, from Rotating to Fixed]
Code: Select all
ScenEdit_SetReferencePoint({side='blue',name='RP-101', bearingtype=1})Oh, one more question,
4. 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?