Added automatic unit conversion for the target data

This commit is contained in:
ulteq
2015-04-18 12:12:19 +02:00
parent 9057edb1e2
commit 2a6dcbfbcb
6 changed files with 43 additions and 19 deletions

View File

@ -43,6 +43,8 @@
*/
#include "script_component.hpp"
systemChat format["%1", _this];
private ["_scopeBaseAngle", "_bulletMass", "_boreHeight", "_airFriction", "_muzzleVelocity", "_temperature", "_barometricPressure", "_relativeHumidity", "_simSteps", "_windSpeed", "_windDirection", "_inclinationAngle", "_targetSpeed", "_targetRange", "_bc", "_dragModel", "_atmosphereModel", "_storeRangeCardData", "_stabilityFactor", "_twistDirection", "_latitude"];
_scopeBaseAngle = _this select 0;
_bulletMass = _this select 1;