ropeSetCargoMass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added to "see also")
m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] +(\[[a-zA-Z0-9_, ]+\]);?<\/code>" to "<sqf>$1 $2;</sqf>")
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands]]
{{RV|type=command


{{Command|= Comments
|game1= tkoh
____________________________________________________________________________________________
|version1= 1.00


| TKOH |= Game name
|gr1= Ropes and Sling Loading


|1.00|= Game version
|descr= Set the simulated mass of an object attached to a rope.
____________________________________________________________________________________________
{{Feature|arma3|This command is not present in {{arma3}}. Use [[setMass]] instead.}}


| Set the simulated mass of an object attached to a rope. |= Description
|s1= [[ropeSetCargoMass]] [rope, cargo, mass]
____________________________________________________________________________________________


| '''ropeSetCargoMass''' [rope, cargo, mass];|= Syntax
|p1= rope: [[Object]] - rope object


|p1= rope: [[Object]] - rope object |= Parameter 1
|p2= cargo: [[Object]] - cargo object
|p2= cargo: [[Object]] - cargo object |= Parameter 2
|p3= mass: [[Number]] - override cargo mass, if mass < 1 then original mass is used |= Parameter 3


| [[Number]] - object mass |= Return value
|p3= mass: [[Number]] - override cargo mass, if mass < 1 then original mass is used
____________________________________________________________________________________________


|x1 = <code>[[ropeSetCargoMass]] [myRope, myCargo, 1138];</code> |= Example 1
|r1= [[Number]] - object mass


| [[ropeCreate]],
|x1= <sqf>ropeSetCargoMass [myRope, myCargo, 1138];</sqf>
[[ropeDestroy]],
[[ropeDetach]],
[[getMass]],
[[getCenterOfMass]] |= See also


|seealso= [[ropeCreate]] [[ropeDestroy]] [[ropeDetach]] [[getMass]] [[setMass]] [[getCenterOfMass]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Take On Helicopters: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]

Latest revision as of 13:20, 5 May 2022

Hover & click on the images for description

Description

Description:
Set the simulated mass of an object attached to a rope.
Arma 3
This command is not present in Arma 3. Use setMass instead.
Groups:
Ropes and Sling Loading

Syntax

Syntax:
ropeSetCargoMass [rope, cargo, mass]
Parameters:
rope: Object - rope object
cargo: Object - cargo object
mass: Number - override cargo mass, if mass < 1 then original mass is used
Return Value:
Number - object mass

Examples

Example 1:
ropeSetCargoMass [myRope, myCargo, 1138];

Additional Information

See also:
ropeCreate ropeDestroy ropeDetach getMass setMass getCenterOfMass

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