2015-05-01 04:56:39 +00:00
|
|
|
/*
|
|
|
|
* Author: esteldunedain
|
|
|
|
* Return a suitable position for the action point for the current weapon
|
|
|
|
*
|
2015-05-09 02:47:15 +00:00
|
|
|
* Arguments:
|
2015-05-14 18:00:56 +00:00
|
|
|
* None (uses local variable _target)
|
2015-05-01 04:56:39 +00:00
|
|
|
*
|
2016-06-18 09:50:41 +00:00
|
|
|
* Return Value:
|
2015-05-01 04:56:39 +00:00
|
|
|
* Children actions <ARRAY>
|
|
|
|
*
|
2015-05-09 02:47:15 +00:00
|
|
|
* Example:
|
2015-05-14 18:00:56 +00:00
|
|
|
* call ace_interaction_fnc_getWeaponPos
|
2015-05-09 02:47:15 +00:00
|
|
|
*
|
2015-05-01 04:56:39 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
// IGNORE_PRIVATE_WARNING(_target);
|
|
|
|
|
2017-10-10 14:39:59 +00:00
|
|
|
private _weaponDir = _target weaponDirection currentWeapon _target;
|
|
|
|
private _refSystem = _weaponDir call EFUNC(common,createOrthonormalReference);
|
2015-05-01 04:56:39 +00:00
|
|
|
|
|
|
|
(_target selectionPosition "righthand") vectorAdd ((_refSystem select 2) vectorMultiply 0.1);
|