setSuppression: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
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

Hover & click on the images for description

Description

Description:
Sets the given suppression value for the given unit. The value range is from 0 to 1.

The unit must not be objNull, must be local and alive
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

Notes

Bottom Section