setBleedingRemaining: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
 
(38 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


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


| Sets bleeding time remaining. |= Description
|descr= Sets for how many seconds injured unit leaves blood trail.
____________________________________________________________________________________________
The unit damage must be >= 0.1 for this command to have an effect, otherwise, the [[getBleedingRemaining]] will return 0 and no blood trail is left behind.


| unit '''setBleedingRemaining''' time |= Syntax
|s1= unit [[setBleedingRemaining]] time


|p1= unit: [[Object]] |= PARAMETER1
|p1= unit: [[Object]]


|p2= time: [[Number]] |= PARAMETER2
|p2= time: [[Number]]


| [[Nothing]] |= RETURNVALUE
|r1= [[Nothing]]


|x1= <sqf>_unit setBleedingRemaining 60;</sqf>


|x1= <code>player setBleedingRemaining 60;
|x2= <sqf>
</code>|= EXAMPLE1
player setDamage 0.25;
player setBleedingRemaining 120;
</sqf>


____________________________________________________________________________________________
|seealso= [[getBleedingRemaining]] [[isBurning]] [[isBleeding]]
 
| [[getBleedingRemaining]], [[isBurning]], [[isBleeding]] |= SEEALSO
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}
<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:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on November 8, 2014 - 10:56 (UTC)</dd>
<dt class="note">[[User:Yourry|Yourry]]</dt>
<dd class="note">For the command to work, it is necessary that the soldier is injured (getdammage player > 0.1)
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 12:02, 13 May 2022

Hover & click on the images for description

Description

Description:
Sets for how many seconds injured unit leaves blood trail. The unit damage must be >= 0.1 for this command to have an effect, otherwise, the getBleedingRemaining will return 0 and no blood trail is left behind.
Groups:
Object Manipulation

Syntax

Syntax:
unit setBleedingRemaining time
Parameters:
unit: Object
time: Number
Return Value:
Nothing

Examples

Example 1:
_unit setBleedingRemaining 60;
Example 2:
player setDamage 0.25; player setBleedingRemaining 120;

Additional Information

See also:
getBleedingRemaining isBurning isBleeding

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