setSuppression: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category:[cC]ommand[_ ][gG]roup:[_ ][^|]+\|\{*uc:{{PAGENAME}*]\]" 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 | ||
|arg= local | |arg= local | ||
|1.42 | |1.42 | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Sets the given suppression value for the given unit. The value range is from 0 to 1. <br><br> | | Sets the given suppression value for the given unit. The value range is from 0 to 1. <br><br> | ||
{{Important | The unit must not be [[objNull]], must be [[local]] and [[alive]]}} | {{Important | The unit must not be [[objNull]], must be [[local]] and [[alive]]}} | ||
| unit '''setSuppression''' value | | unit '''setSuppression''' value | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= value: [[Number]] - suppression value from 0 to 1 | |p2= value: [[Number]] - suppression value from 0 to 1 | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code> AI_unit_1 [[setSuppression]] 1; | |x1= <code> AI_unit_1 [[setSuppression]] 1; | ||
</code> | </code> | ||
| [[getSuppression]], [[suppressFor]] | | [[getSuppression]], [[suppressFor]] | ||
| | | | ||
}} | }} | ||
Revision as of 11:12, 18 January 2021
Description
- Description:
- Sets the given suppression value for the given unit. The value range is from 0 to 1.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- unit setSuppression value
- Parameters:
- unit: Object
- value: Number - suppression value from 0 to 1
- Return Value:
- Nothing
Examples
- Example 1:
AI_unit_1 setSuppression 1;
Additional Information
- See also:
- getSuppressionsuppressFor
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