ropeSetCargoMass: Difference between revisions

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


|game1= tkoh
|version1= 1.00


{{Command|Comments=
|gr1= Ropes and Sling Loading
____________________________________________________________________________________________


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


|1.00|Game version=
|s1= [[ropeSetCargoMass]] [rope, cargo, mass]


|gr1= Ropes and Sling Loading |GROUP1=
|p1= rope: [[Object]] - rope object
____________________________________________________________________________________________


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


| [[ropeSetCargoMass]] [rope, cargo, mass];|Syntax=
|p3= mass: [[Number]] - override cargo mass, if mass < 1 then original mass is used


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


|p2= cargo: [[Object]] - cargo object |Parameter 2=
|x1= <sqf>ropeSetCargoMass [myRope, myCargo, 1138];</sqf>


|p3= mass: [[Number]] - override cargo mass, if mass < 1 then original mass is used |Parameter 3=
|seealso= [[ropeCreate]] [[ropeDestroy]] [[ropeDetach]] [[getMass]] [[setMass]] [[getCenterOfMass]]
 
| [[Number]] - object mass |Return value=
____________________________________________________________________________________________
 
|x1= <code>[[ropeSetCargoMass]] [myRope, myCargo, 1138];</code> |Example 1=
 
| [[ropeCreate]], [[ropeDestroy]], [[ropeDetach]], [[getMass]], [[setMass]], [[getCenterOfMass]] |See also=
}}
}}
<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]]
[[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