ropeSetCargoMass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (format)
Line 1: Line 1:
[[Category:Scripting Commands]]


{{Command|= Comments
 
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| TKOH |= Game name
| TKOH |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set the simulated mass of an object attached to a rope. |= Description
| Set the simulated mass of an object attached to a rope.
{{Feature Arma3|This command does not apply to {{arma3}}. Use [[setMass]] instead.}}|Description=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[ropeSetCargoMass]] [rope, cargo, mass];|= Syntax
| [[ropeSetCargoMass]] [rope, cargo, mass];|Syntax=
 
|p1= rope: [[Object]] - rope object |Parameter 1=
 
|p2= cargo: [[Object]] - cargo object |Parameter 2=


|p1= rope: [[Object]] - rope object |= Parameter 1
|p3= mass: [[Number]] - override cargo mass, if mass < 1 then original mass is used |Parameter 3=
|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
| [[Number]] - object mass |Return value=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| [[ropeCreate]], [[ropeDestroy]], [[ropeDetach]], [[getMass]], [[setMass]], [[getCenterOfMass]] |See also=
}}
}}


Line 35: Line 37:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Take On Helicopters: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Take On Helicopters: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Ropes and Sling Loading]]

Revision as of 01:02, 30 March 2019


Hover & click on the images for description

Description

Description:
Set the simulated mass of an object attached to a rope. Template:Feature Arma3
Groups:
Uncategorised

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:
ropeCreateropeDestroyropeDetachgetMasssetMassgetCenterOfMass

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