SetReferencePoint Issue
Posted: Wed May 17, 2023 12:58 am
coming from here, anyway, I'll post it again.
Hey, guys, I've been looking at the 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, is not working
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?
any reply is appreciated~
Hey, guys, I've been looking at the 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,
- 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})- 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?
any reply is appreciated~