modding:function:syscalcfiresolution
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
modding:function:syscalcfiresolution [2012/03/17 01:18] – external edit 127.0.0.1 | modding:function:syscalcfiresolution [2014/12/27 04:40] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Discuss this page on this pages TalkPage | + | Discuss this page on this pag's [[sysCalcFireSolution Talk Page|Talk Page]] |
- | sysCalcFireSolution | + | === sysCalcFireSolution |
- | See sysCalcFireSolution at Xelerus | + | See [[http:// |
- | Syntax (sysCalcFireSolution targetPos targetVel speed) | + | ^ Syntax |
- | Arguments targetPos | + | ^ Arguments |
- | targetVel | + | ^ | targetVel: the vector velocity of the target |
- | speed - the speed of the projectile | + | ^ | speed: the speed of the projectile |
- | Returns angle or nil | + | ^ Returns |
- | Category math, | + | ^ Category |
- | Description A very useful function when using sysCreateWeaponFire. | + | ^ Description |
- | Example (sysCalcFireSolution (objGetpos aTargetobj) (objGetVel aTargetObj) (objGetVel gPlayerShip)) | + | |
- | + | Automatically | |
- | Return to Functions list | + | |
+ | === Example | ||
+ | |||
+ | <code lisp>(sysCalcFireSolution (objGetpos aTargetobj) (objGetVel aTargetObj) (objGetVel gPlayerShip))</ | ||
+ | Will return the correct angle to fire a projectile in order to hit aTargetObj | ||
+ | |||
+ | |
modding/function/syscalcfiresolution.1331947122.txt.gz · Last modified: 2014/12/27 04:40 (external edit)