Arma 3 Scripting

Command in Ropes and Sling Loading

setSlingLoad

Also available as Markdown and JSON, or read the original wiki page.

Description

Creates a sling loading from a helicopter to an entity if possible. To unload cargo, pass objNull as second param.

Note

FROM object has to be a helicoper, alive with rope attachment enabled, TO object has to be an entity, alive with rope attachment enabled.

Syntax

heli setSlingLoad cargo

Parameters:

Returns: Boolean - true on success

Examples

Example 1

_success = heli1 setSlingLoad veh1;

Example 2

To unload cargo:

_success = heli setSlingLoad objNull;

See also

ropes · canSlingLoad · enableRopeAttach · getSlingLoad · ropeAttachedObjects · ropeAttachTo · ropeDestroy · ropeLength · ropeUnwound · ropeAttachedTo · ropeCreate · ropeDetach · ropeAttachEnabled · ropeCut · ropeEndPosition · ropeUnwind · slingLoadAssistantShown