mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
22 lines
528 B
Plaintext
22 lines
528 B
Plaintext
/*
|
|
* Author: esteldunedain
|
|
* Return a suitable position for the action point for the current weapon
|
|
*
|
|
* Argument:
|
|
* None
|
|
*
|
|
* Return value:
|
|
* Children actions <ARRAY>
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
// IGNORE_PRIVATE_WARNING(_target);
|
|
|
|
private ["_weaponDir","_refSystem"];
|
|
|
|
_weaponDir = _target weaponDirection currentWeapon _target;
|
|
_refSystem = _weaponDir call EFUNC(common,createOrthonormalReference);
|
|
|
|
(_target selectionPosition "righthand") vectorAdd ((_refSystem select 2) vectorMultiply 0.1);
|