Turret range

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Tyranos Strategos

Turret range

Post by Tyranos Strategos » Thu, 17. Nov 22, 12:53

Whats defying turrent range in xml ? Is it projectile lifetime ?
For example <bullet speed="4400" lifetime="3.7" amount="bla bla bla

Tassekaffe
Posts: 50
Joined: Thu, 10. Feb 22, 19:33
x4

Re: Turret range

Post by Tassekaffe » Thu, 17. Nov 22, 15:38

i´m no expert on modding,but i would say yes....it worked that way for me anyway :D

sprIder
Posts: 92
Joined: Sat, 3. Jul 10, 23:23
x4

Re: Turret range

Post by sprIder » Thu, 17. Nov 22, 18:19

Right, It is defined with their bullets respectively the speed and lifetime of the bullet.
Regarding your example: range = bullet speed * lifetime = 4400 (m/s) * 3.7 (s) = 16280 (m)

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13296
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Turret range

Post by euclid » Thu, 17. Nov 22, 18:57

Just be careful with the range as the bullets might miss the intended target and then travel onwards to eventually hit something else like a station or ship of one of your allies ;-)

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Tyranos Strategos

Re: Turret range

Post by Tyranos Strategos » Fri, 18. Nov 22, 02:30

euclid wrote:
Thu, 17. Nov 22, 18:57
Just be careful with the range as the bullets might miss the intended target and then travel onwards to eventually hit something else like a station or ship of one of your allies ;-)

Cheers Euclid
No allies !! :mrgreen: only yaki 8)

Post Reply

Return to “X4: Foundations - Scripts and Modding”