mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
33 lines
682 B
Plaintext
33 lines
682 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: ACE-Team
|
|
* ?
|
|
*
|
|
* Arguments:
|
|
* <UNKOWN>
|
|
*
|
|
* Return Value:
|
|
* Unknown <UNKNOWN>
|
|
*
|
|
* Example:
|
|
* [UNKOWN] call ace_common_fnc_translateToWeaponSpace
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
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
|