Ace Version
This commit is contained in:
42
ACE_MPD_SlingLoad/init.sqf
Normal file
42
ACE_MPD_SlingLoad/init.sqf
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
Simple Sling Load Script by MrPvTDagger#4176 :D
|
||||
*/
|
||||
|
||||
diag_log "MPD_SlingLoad is Loading...";
|
||||
|
||||
/*
|
||||
This is for Modded Objects that Might not be slingable by default. I have done this automtically but Just incase it doesn't work with all mods.
|
||||
|
||||
EXAMPLE:
|
||||
_ccargo = [
|
||||
RHS_Storage_Create_1,
|
||||
RHS_Storage_Create_2,
|
||||
RHS_Storage_Create_3 // Make sure the last one doesn't have a comment at the end
|
||||
];
|
||||
*/
|
||||
|
||||
|
||||
_ccargo = [
|
||||
|
||||
];
|
||||
|
||||
// ====================== Don't Touch Anything Below this line ======================
|
||||
_acargo = entities [[], ["Air","Man","Tank","Logic"], true];; // Maybe Better way of Doing This????
|
||||
_acargo append _ccargo;
|
||||
{
|
||||
_action = [
|
||||
"SlingLoad", // Action Name
|
||||
"Sling Load", // Name Of action Shown In menu
|
||||
"", // Icon
|
||||
{[_target] execVM "MPD_SlingLoad\sling.sqf";}, // Statment
|
||||
{(nearestObject [_target, "Helicopter"]) distance _target < 10}, // Condition
|
||||
{}, //
|
||||
[],
|
||||
[0,0,0], 100] call ace_interact_menu_fnc_createAction;
|
||||
|
||||
[_x, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
|
||||
} forEach _acargo;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user