BIN fnc setRagdoll: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Feature arma3contact|This function is part of the Arma 3 Contact expansion only.}}" to "{{Feature arma3contact}}")
(Page filling)
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.94


|1.94|Game version=
|gr1= Object Manipulation
____________________________________________________________________________________________


| <pre>/*
|descr= Set the provided unit in ragdoll state (pushed by an invisible object).
Input:
{{Feature|informative|{{GVI|arma3|2.18}} [[addForce]] can be used in vanilla {{arma3}}.}}
0: _unit [object] - Name of unit (works only with man type units)
1: _force [vector] - Amount of force that will be applied to colliding object
2: _position [string] (optional) - Name of selection from which it will try to calculate center point (default: spine1)
Usage:
[player,[0,100,0]] call BIN_fnc_setRagdoll -
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small>
{{Feature arma3contact}} |Description=
____________________________________________________________________________________________


| <!-- [] call [[BIN_fnc_setRagdoll]]; --> |Syntax=
{{Feature|arma3contact}}


|p1= |Parameter 1=
|s1= [unit, force, selectionPos] call [[BIN_fnc_setRagdoll]]


| |Return value=
|p1= unit: [[Object]] - the unit to ragdoll
____________________________________________________________________________________________


|x1= <code></code> |Example 1=
|p2= unit: [[Array]] format [[Vector3D]] - force applied to the colliding object
____________________________________________________________________________________________


| |See also=
|p3= unit: [[String]]
}}


<h3 style="display:none">Notes</h3>
|r1= [[String]] event ID from [[BIS_fnc_addStackedEventHandler]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>[player, [0, 100, 0]] call BIN_fnc_setRagdoll;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[setUnconscious]] [[addForce]]
[[Category:Function Group: Misc|{{uc:setRagdoll}}]]
}}
[[Category:Functions|{{uc:setRagdoll}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:setRagdoll}}]]

Latest revision as of 10:22, 14 October 2024

Hover & click on the images for description

Description

Description:
Set the provided unit in ragdoll state (pushed by an invisible object).
Arma 3 logo black.png2.18 addForce can be used in vanilla Arma 3.
enoch icon ca.png
This content is exclusive to the Arma 3 Contact Expansion.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
[unit, force, selectionPos] call BIN_fnc_setRagdoll
Parameters:
unit: Object - the unit to ragdoll
unit: Array format Vector3D - force applied to the colliding object
unit: String
Return Value:
String event ID from BIS_fnc_addStackedEventHandler

Examples

Example 1:
[player, [0, 100, 0]] call BIN_fnc_setRagdoll;

Additional Information

See also:
setUnconscious addForce

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