Difference between revisions of "Template:WeaponRange"
From Space Engineers Wiki
Vox Serico (talk | contribs) (Created page with "{{#expr: {{#show:{{{1}}}|?RangeMultiplier#-n}} * {{#show:{{#show:{{{1}}}|?AmmoMagazine#-}}|?MaxTrajectory#-n}} round 0}}") |
Vox Serico (talk | contribs) m (Added default range multiplier) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#expr: {{#show:{{{1}}}|?RangeMultiplier#-n}} * {{#show:{{#show:{{{1}}}|?AmmoMagazine#-}}|?MaxTrajectory#-n}} round 0}} | + | <includeonly>{{#expr: {{#show:{{{1}}}|?RangeMultiplier#-n|default=1}} * {{#show:{{#show:{{{1}}}|?AmmoMagazine#-}}|?MaxTrajectory#-n}} round 0}}</includeonly><noinclude> |
+ | Example usage: <pre><nowiki>Range: {{WeaponRange|Mod:Vanilla/Weapon/RifleGun}} m</nowiki></pre> | ||
+ | Range: {{WeaponRange|Mod:Vanilla/Weapon/RifleGun}} m | ||
+ | [[Category:Templates]] | ||
+ | </noinclude> |
Latest revision as of 17:45, 26 October 2020
Example usage:Range: {{WeaponRange|Mod:Vanilla/Weapon/RifleGun}} m
Range: 800 m