Using ACF muzzle velocity in E2 missile code
🔫 Weapons•Updated 2 days ago•0 views
Read the gun's muzzle velocity with Gun:acfMuzzleVel(). If it returns 0 the gun is not ready, so trigger a reload; otherwise use the returned value (e.g. 229 m/…
How do you use the ACF muzzle velocity value in an E2 script for a missile, since acfmuzzlevel does not work there?
Read the gun's muzzle velocity with Gun:acfMuzzleVel(). If it returns 0 the gun is not ready, so trigger a reload; otherwise use the returned value (e.g. 229 m/s) as the missile speed variable instead of a hardcoded number: if(Gun:acfMuzzleVel()==0){N=1000 Gun:acfReload()}else{N=229}