ropeSetCargoMass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:




{{Command|Comments=
{{Command


| TKOH |Game name=
| TKOH


|1.00|Game version=
|1.00


|gr1= Ropes and Sling Loading |GROUP1=
|gr1= Ropes and Sling Loading


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


| [[ropeSetCargoMass]] [rope, cargo, mass];|Syntax=
| [[ropeSetCargoMass]] [rope, cargo, mass];


|p1= rope: [[Object]] - rope object |Parameter 1=
|p1= rope: [[Object]] - rope object


|p2= cargo: [[Object]] - cargo object |Parameter 2=
|p2= cargo: [[Object]] - cargo object


|p3= mass: [[Number]] - override cargo mass, if mass < 1 then original mass is used |Parameter 3=
|p3= mass: [[Number]] - override cargo mass, if mass < 1 then original mass is used


| [[Number]] - object mass |Return value=
| [[Number]] - object mass


|x1= <code>[[ropeSetCargoMass]] [myRope, myCargo, 1138];</code> |Example 1=
|x1= <code>[[ropeSetCargoMass]] [myRope, myCargo, 1138];</code>


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



Revision as of 12:04, 18 January 2021


Hover & click on the images for description

Description

Description:
Set the simulated mass of an object attached to a rope.
Arma 3
This command does not apply to 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:
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