Units:WeaponMainDir

WeaponMainDir: The Simple Way

WeaponMainDirX is a vector showing the direction of the weapon's aiming cone. MaxAngleDifX is the size of the aiming cone.

For instance, if you want your Primary Weapon to have a 90° fire arc forward, you'd write:

 WeaponMainDir1=0 0 1;  //x:0 y:0 z:1 => that's forward!
 MaxAngleDif1=90;       //90° from side to side, or 45° from center to each direction

If you want to precisely choose the WeaponMainDir, you could run UpSpring, create a new piece, move it around until the line, from the origin, to your piece, is along the line you want your weapon to fire, then write down the coordinate in WeaponMainDir. Keep in mind UpSpring invert the sign of the axis x and z.


--old confusing explanation removed; if you want it see history--

Retrieved from "http://springrts.com/wiki/Units:WeaponMainDir"

This page has been accessed 1,431 times. This page was last modified 00:53, 22 November 2008.


 
 

Page editing toolbox

Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Donations
Edit
View source
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in
Special pages
New pages
File list
Statistics
Bug reports
More...

Site layout created by Roflcopter.