Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Author: Katalam
- * Children action for attaching stretcher
- *
- * Arguments:
- * 0: Stretcher <OBJECT>
- *
- * Return Value:
- * None
- *
- * Example:
- * [cursorTarget] call kat_aceMisc_fnc_attachStretcher;
- *
- * Public: No
- */
- params [["_target", objNull, [objNull]]];
- private _vehicles = nearestObjects [_target, ["Car", "Helicopters"], 20];
- private _actions = [];
- {
- private _type = typeOf _x;
- private _name = getText (configFile >> "CfgVehicles" >> _type >> "displayName");
- private _uniqueName = format ["KAT_%1", _type];
- if (isClass (configFile >> "CfgVehicles" >> _type)) then { // >> "stretcherPos"
- _actions pushBack [
- [
- _uniqueName,
- _name,
- "",
- {
- diag_log true;
- },
- {true}
- ] call ace_interact_menu_fnc_createAction,
- [],
- _target
- ];
- } else {
- false;
- };
- } count _vehicles;
- _actions;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement