Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ELEVATION CONTROL:
- inverselerp(0,90,TargetElevation + (rate(TargetElevation) * (TargetDistance / 1500)))
- HEADING CONTROL
- (((TargetHeading - Heading) + (rate(TargetHeading) * (TargetDistance / 1500)))/ 180) * clamp01(TargetDistance < 5000) * clamp01(TargetDistance > 1)
- LOCAL CONSTANTS:
- Replace 1500 with your bullet speed. (both)
- Replace 5000 and 1 (in the clamp01 functions) to set the "range" of the turret before activating. (heading control)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement