Profile image

Auto-Aiming

364 JeffersonAirraid  yesterday

Hello everyone, I'm need help. I need help making Turrets with Miniguns and Wing Guns with auto aiming, but their positioning must be specific. I need to create 4 different installations: Course/Frontal, Right, Left and Aft/Rear.

The Course/Frontal should have the following characteristics: Barrel elevation angle - from -5 to +70 degrees, rotation from 270 to 90 degrees, bullet speed - 1000. At the same time, the turret itself should "look" forward relative to the structure (in the game, the direction should be directed strictly to N according to the radar). In simple terms, the turret should aim at everything in the Upper Half of the Circle.

The Right one should have the following characteristics: Barrel elevation angle - from -5 to +70 degrees, rotation from 0 to 180 degrees, bullet speed - 1000. At the same time, the turret itself should "look" to the right relative to the structure (in the game, the direction should be directed strictly to E according to the radar). In simple terms, the turret should aim at everything in the Right Half of the Circle.

The Left one should have the following characteristics: Barrel elevation angle - from -5 to +70 degrees, rotation from 180 to 0 degrees, bullet speed - 1000. At the same time, the turret itself should "look" to the left relative to the structure (in the game, the direction should be directed strictly to W according to the radar). In simple terms, the turret should aim at everything in the Left Half of the Circle.

The Aft/Tear should have the following characteristics: Barrel elevation angle - from -5 to +70 degrees, rotation from 90 to 270 degrees, bullet speed - 1000. At the same time, the turret itself should "look" back relative to the structure (in the game, the direction should be directed strictly to S according to the radar). In simple terms, the turret should aim at everything in the Lower Half of the Circle.

Also, one important thing - turrets should be placed basically just like in this build - (https://www.simpleplanes.com/a/V3GHbS/Example-of-multi-directional-automatic-aiming)

I'm have one good Turret, frontal one, it targets all enemies very good, but main problem is code - it has maybe 500 symbols in code or something, and I totally don't understand how to rewrite it to make turret target enemies in other "half" of circle - it just don't want to work properly.

Help me please, I'm very want to make Yamato with Auto Aiming AAs in future, and I will appreciate every help. Please