setSlingLoad

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.34
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.34

Description

Description:
Create sling loading from first object to second object if possible. To unload cargo, pass objNull as second param.

Syntax

Syntax:
vehicle setSlingLoad cargo
Parameters:
vehicle: Object
cargo: Object
Return Value:
Boolean

Examples

Example 1:
_success = heli1 setSlingLoad veh1;
Example 2:
To unload cargo:_success = heli setSlingLoad objNull;

Additional Information

Multiplayer:
-
See also:
ropescanSlingLoadenableRopeAttachgetSlingLoadropeAttachedObjectsropeAttachToropeDestroyropeLengthropeUnwoundropeAttachedToropeCreateropeDetachropeAttachEnabledropeCutropeEndPositionropeUnwindslingLoadAssistantShown

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on November 8, 2014 - 14:42 (UTC)
Tajin
"... if possible "
FYI, that only means that 'vehicle' has to be able to lift 'cargo'. The position/distance does not matter, 'cargo' is automatically moved to a position that is close enough but doesn't doesn't collide with 'vehicle'. (can also be used if 'vehicle' is not flying, in which case 'cargo' will be placed and attached on the ground next to it).