setSuppression: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Object Manipulation |GROUP1= | |gr1= Object Manipulation |GROUP1= | ||
| 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]]}} |DESCRIPTION= | {{Important | The unit must not be [[objNull]], must be [[local]] and [[alive]]}} |DESCRIPTION= | ||
| unit '''setSuppression''' value |SYNTAX= | | unit '''setSuppression''' value |SYNTAX= | ||
Line 25: | Line 22: | ||
</code>|EXAMPLE1= | </code>|EXAMPLE1= | ||
| [[getSuppression]], [[suppressFor]] |SEEALSO= | | [[getSuppression]], [[suppressFor]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 02:38, 17 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