answering my own question... it was easy
If Abs(JoyRoll())>20 Or Abs(JoyZ())>.2
PositionEntity crosshair,JoyRoll(),.8,-JoyZ()*180 ; relative to parent
PointEntity turret,crosshair
EndIf
this is hard coded for my particular joystick at the moment - 2nd stick is JoyRoll for x, JoyZ for y, but JoyRoll goes -180 to 180 with about 20 that needs to remain dead, and JoyZ goes from -1 to 1.
turret and crosshair are parented to my player object. i just move crosshair to wherever joystick points from player object and then aim turret at it. crosshair is not visible in my case
If Abs(JoyRoll())>20 Or Abs(JoyZ())>.2
PositionEntity crosshair,JoyRoll(),.8,-JoyZ()*180 ; relative to parent
PointEntity turret,crosshair
EndIf
this is hard coded for my particular joystick at the moment - 2nd stick is JoyRoll for x, JoyZ for y, but JoyRoll goes -180 to 180 with about 20 that needs to remain dead, and JoyZ goes from -1 to 1.
turret and crosshair are parented to my player object. i just move crosshair to wherever joystick points from player object and then aim turret at it. crosshair is not visible in my case