setOxygenRemaining: Difference between revisions
Jump to navigation
Jump to search
SilentSpike (talk | contribs) (Improved description) |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
| unit '''setOxygenRemaining''' value |= Syntax | | unit '''setOxygenRemaining''' value |= Syntax | ||
|p1= unit: [[Object]] |= | |p1= unit: [[Object]] |PARAMETER1= | ||
|p2= value: [[Number]] |= | |p2= value: [[Number]] |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[[player]] '''setOxygenRemaining''' 0; // Drowns player</code>|= | |x1= <code>[[player]] '''setOxygenRemaining''' 0; // Drowns player</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[getOxygenRemaining]] |= | | [[getOxygenRemaining]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:37, 7 April 2019
Description
- Description:
- Sets oxygen remaining. It has no effect when soldier is not diving. Oxygen remaining is a number between 0 and 1.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
player setOxygenRemaining 0; // Drowns player
Additional Information
- See also:
- getOxygenRemaining
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