setBleedingRemaining: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 12: Line 12:
| unit '''setBleedingRemaining''' time |= Syntax
| unit '''setBleedingRemaining''' time |= Syntax


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


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


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




|x1= <code>_unit [[setBleedingRemaining]] 60;
|x1= <code>_unit [[setBleedingRemaining]] 60;
</code>|= EXAMPLE1
</code>|EXAMPLE1=  




|x2= <code>[[player]] [[setDamage]] 0.25;
|x2= <code>[[player]] [[setDamage]] 0.25;
[[player]] [[setBleedingRemaining]] 120;
[[player]] [[setBleedingRemaining]] 120;
</code>|= EXAMPLE2
</code>|EXAMPLE2=


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[getBleedingRemaining]], [[isBurning]], [[isBleeding]] |= SEEALSO
| [[getBleedingRemaining]], [[isBurning]], [[isBleeding]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 10:36, 7 April 2019

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:
Uncategorised

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:
getBleedingRemainingisBurningisBleeding

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

Notes

Bottom Section