setOxygenRemaining: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|0.50 | |0.50 | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Sets oxygen remaining. It has no effect when soldier is not diving. Oxygen remaining is a number between 0 and 1. | | Sets oxygen remaining. It has no effect when soldier is not diving. Oxygen remaining is a number between 0 and 1. | ||
| unit '''setOxygenRemaining''' value | | unit '''setOxygenRemaining''' value | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= value: [[Number]] | |p2= value: [[Number]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[player]] '''setOxygenRemaining''' 0; // Drowns player</code> | |x1= <code>[[player]] '''setOxygenRemaining''' 0; // Drowns player</code> | ||
| [[getOxygenRemaining]] | | [[getOxygenRemaining]] | ||
| | | | ||
}} | }} | ||
Revision as of 11:09, 18 January 2021
Description
- Description:
- Sets oxygen remaining. It has no effect when soldier is not diving. Oxygen remaining is a number between 0 and 1.
- Groups:
- Object Manipulation
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