ropeSetCargoMass: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] +(\[[a-zA-Z0-9_, ]+\]);?<\/code>" to "<sqf>$1 $2;</sqf>") |
||
(23 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | |||
|game1= tkoh | |||
|version1= 1.00 | |||
| | |gr1= Ropes and Sling Loading | ||
| | |descr= Set the simulated mass of an object attached to a rope. | ||
{{Feature|arma3|This command is not present in {{arma3}}. Use [[setMass]] instead.}} | |||
| | |s1= [[ropeSetCargoMass]] [rope, cargo, mass] | ||
| | |p1= rope: [[Object]] - rope object | ||
|p2= cargo: [[Object]] - cargo object | |||
|p2= cargo: [[Object]] - cargo object | |||
| [[Number]] - | |p3= mass: [[Number]] - override cargo mass, if mass < 1 then original mass is used | ||
| | |r1= [[Number]] - object mass | ||
| [ | |x1= <sqf>ropeSetCargoMass [myRope, myCargo, 1138];</sqf> | ||
|seealso= [[ropeCreate]] [[ropeDestroy]] [[ropeDetach]] [[getMass]] [[setMass]] [[getCenterOfMass]] | |||
}} | }} | ||
Latest revision as of 13:20, 5 May 2022
Description
- Description:
- Set the simulated mass of an object attached to a rope.
- 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