2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2016-05-30 16:37:03 +00:00
|
|
|
/*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Author: ACE-Team
|
2016-05-30 16:37:03 +00:00
|
|
|
* ?
|
|
|
|
*
|
|
|
|
* Arguments:
|
2017-06-08 13:31:51 +00:00
|
|
|
* <UNKOWN>
|
2016-05-30 16:37:03 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* Unknown <UNKNOWN>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [UNKOWN] call ace_common_fnc_translateToWeaponSpace
|
2016-05-30 16:37:03 +00:00
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Public: No
|
2016-05-30 16:37:03 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_object", "_matrix", "_offset"];
|
|
|
|
|
|
|
|
private _origin = getPosASL _object;
|
|
|
|
|
|
|
|
_matrix params ["_xVec", "_yVec", "_zVec"];
|
|
|
|
|
|
|
|
_offset = _offset vectorDiff _origin;
|
|
|
|
|
|
|
|
_offset params ["_x", "_y", "_z"];
|
|
|
|
|
|
|
|
[
|
|
|
|
((_xVec select 0) * _x) + ((_xVec select 1) * _y) + ((_xVec select 2) * _z),
|
|
|
|
((_yVec select 0) * _x) + ((_yVec select 1) * _y) + ((_yVec select 2) * _z),
|
|
|
|
((_zVec select 0) * _x) + ((_zVec select 1) * _y) + ((_zVec select 2) * _z)
|
|
|
|
] // return
|