setSlingLoad

From Bohemia Interactive Community
Revision as of 20:13, 12 February 2015 by Killzone Kid (talk | contribs) (Undo revision 87681 by Bridge.J (talk) comment duplicates what is already in description and example)
Jump to navigation Jump to search
Hover & click on the images for description

Description

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

Syntax

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

Examples

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

Additional Information

See also:
ropescanSlingLoadenableRopeAttachgetSlingLoadropeAttachedObjectsropeAttachToropeDestroyropeLengthropeUnwoundropeAttachedToropeCreateropeDetachropeAttachEnabledropeCutropeEndPositionropeUnwindslingLoadAssistantShown

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

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).