Post: Control Vehicle Guns(s) GSC
02-26-2016, 03:23 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello! Im kinda new both here and to GSC modding.

Im currently trying to make aircrafts flyable and such.

So now I learned how to shoot the vehicles guns ( self FireWeapon(); and self FireGunnerWeapon(); )

I also learned how to spawn vehicles ( aircraft = spawnHelicopter etc.. )

But now I want to control the turrets/guns aiming with my mouse.

Could someone give me an example of functions that does that?

Applies for both it's turrets and primary guns (Not neccessary rockets and such but you can include that if you want Smile )

Thanks! :wub:

Update: I managed to figure out one thing, the turret is controlled with SetTurretTargetVec(); maybe someone could make a suitable code for mouse aiming to put there?
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo