Skip to content

Instantly share code, notes, and snippets.

@jameslkingsley
Last active July 12, 2016 13:53
Show Gist options
  • Save jameslkingsley/efc0e51177314f5f62eeb7a9dc2954f1 to your computer and use it in GitHub Desktop.
Save jameslkingsley/efc0e51177314f5f62eeb7a9dc2954f1 to your computer and use it in GitHub Desktop.
{
{
_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