[Help] CompassNode
Posted: 2011-02-13 17:57
i get trouble in making Gunner view indicator for Gunner( NOT for pilot). I m still confused by some values of CompassNode.
for example
i know "272 110" means XY position coordinate.Texture will be squeezed by "setCompassNodeTextureSize". "setCompassNodeBorder" set the space which wouldnt show in hud, PlayerAngle is type of compass which show the player`s view orientation.
But,
1), i cant figure out what the "123 16" is.
2), what dose the number 3...1 0 mean?
3), why dose it use "setCompassNodeOffset", what value here is correct ?
there`s another question
well,i have one question left,
hudBuilder.setCompassNodeValueVariable VehicleTurretAngle
i set the value to "VehicleTurretAngle" for my GunnerView indicator in CoGunner`s HUD, but it act in reversed direction: go left when i turn my turret right,
i ve tried other value like playerAngle, which has the same problem.
do you know the reason?
this are the codes in my file.the size of my texture "ah1z_compasArrow512x8.dds" is 512*8 pix
for example
Code: Select all
hudBuilder.createCompassNode Ah1zCoPilotHud Ah1zCoPilotGunnerBarView 3 272 110 123 16 1 0
hudBuilder.setCompassNodeTexture 1 Ingame\Vehicles\Icons\Hud\Air\Attack\Ah1z\ah1z_compasArrow16x8
hudBuilder.setCompassNodeTextureSize 12 8
hudBuilder.setCompassNodeBorder 0 0 0 0
hudBuilder.setCompassNodeValueVariable PlayerAngle
hudBuilder.setCompassNodeOffset 0But,
1), i cant figure out what the "123 16" is.
2), what dose the number 3...1 0 mean?
3), why dose it use "setCompassNodeOffset", what value here is correct ?
there`s another question
well,i have one question left,
hudBuilder.setCompassNodeValueVariable VehicleTurretAngle
i set the value to "VehicleTurretAngle" for my GunnerView indicator in CoGunner`s HUD, but it act in reversed direction: go left when i turn my turret right,
i ve tried other value like playerAngle, which has the same problem.
do you know the reason?
this are the codes in my file.the size of my texture "ah1z_compasArrow512x8.dds" is 512*8 pix
Code: Select all
rem ------- Gunner`s Orientation View (up) ---------------
hudBuilder.createCompassNode Ah1zCoPilotHud Ah1zCoPilotGunnerBarView 3 272 132 285 8 1 0
hudBuilder.setCompassNodeTexture 1 Ingame\Vehicles\Icons\Hud\Air\Attack\Ah1z\ah1z_compasArrow512x8.dds
hudBuilder.setCompassNodeTextureSize 512 8
hudBuilder.setCompassNodeBorder 0 0 0 114
hudBuilder.setCompassNodeValueVariable VehicleTurretAngle
hudBuilder.setCompassNodeOffset -122
hudBuilder.setNodeColor 0 0 0 1