setBleedingRemaining: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(34 intermediate revisions by 3 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 for how many seconds injured unit leaves blood trail. The unit damage must be ><nowiki>=</nowiki> 0.1 for this command to have an effect, otherwise, the [[getBleedingRemaining]] will return 0 and no blood trail is left behind. |= 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>_unit [[setBleedingRemaining]] 60;
|x2= <sqf>
</code>|= EXAMPLE1
player setDamage 0.25;
player setBleedingRemaining 120;
</sqf>


 
|seealso= [[getBleedingRemaining]] [[isBurning]] [[isBleeding]]
|x2= <code>[[player]] [[setDamage]] 0.25;
[[player]] [[setBleedingRemaining]] 120;
</code>|= EXAMPLE2
 
____________________________________________________________________________________________
 
| [[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}}}}]]

Latest revision as of 13: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