Last active
July 12, 2016 13:53
-
-
Save jameslkingsley/efc0e51177314f5f62eeb7a9dc2954f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
{ | |
_x addAction ["Pick up fort", { | |
[{ | |
params ["_args", "_handle"]; | |
_args params ["_target", "_caller"]; | |
private _start = AGLtoASL positionCameraToWorld [0,0,0]; | |
private _end = (_start vectorAdd (getCameraViewDirection _caller vectorMultiply 5)); | |
_target attachTo [_caller, _caller worldToModel _end, "Pelvis"]; | |
}, 0, _this] call CBA_fnc_addPerFrameHandler; | |
}]; | |
} forEach (allMissionObjects _x); | |
} forEach _objects; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment