ropeSetCargoMass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| TKOH
|game1= tkoh
 
|version1= 1.00
|1.00


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


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


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


|p1= rope: [[Object]] - rope object
|p1= rope: [[Object]] - rope object
Line 18: Line 17:
|p3= mass: [[Number]] - override cargo mass, if mass < 1 then original mass is used
|p3= mass: [[Number]] - override cargo mass, if mass < 1 then original mass is used


| [[Number]] - object mass
|r1= [[Number]] - object mass


|x1= <code>[[ropeSetCargoMass]] [myRope, myCargo, 1138];</code>
|x1= <code>[[ropeSetCargoMass]] [myRope, myCargo, 1138];</code>
Line 24: Line 23:
|seealso= [[ropeCreate]], [[ropeDestroy]], [[ropeDetach]], [[getMass]], [[setMass]], [[getCenterOfMass]]
|seealso= [[ropeCreate]], [[ropeDestroy]], [[ropeDetach]], [[getMass]], [[setMass]], [[getCenterOfMass]]
}}
}}
[[Category:Scripting Commands]]
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 18:38, 6 June 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 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:
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