ACE3/addons/common/functions/fnc_translateToModelSpace.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

27 lines
513 B
Plaintext

/*
* Author: ACE-Team
* ?
*
* Arguments:
* <UNKNOWN>
*
* Return Value:
* Something <UNKNOWN>
*
* Example:
* [UNKNOWN] call ace_common_fnc_translateToModelSpace
*
* Public: No
*/
#include "script_component.hpp"
params ["_object", "_matrix", "_offset"];
private _origin = getPosASL _object;
_matrix params ["_xVec", "_yVec", "_zVec"];
_offset params ["_x", "_y", "_z"];
(_xVec vectorMultiply _x) vectorAdd (_yVec vectorMultiply _y) vectorAdd (_zVec vectorMultiply _z) vectorAdd _origin // return