BIS fnc neutralizeUnit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s1= +" to "|s1= ")
m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] \[\[([a-zA-Z0-9_]+)\]\] \[\[([a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1 $2 $3;</sqf>")
Line 20: Line 20:
|r1= [[Boolean]]
|r1= [[Boolean]]


|x1= <code>[[cursorTarget]] [[call]] [[BIS_fnc_neutralizeUnit]];</code>
|x1= <sqf>cursorTarget call BIS_fnc_neutralizeUnit;</sqf>


|seealso= [[setDamage]], [[allowDamage]]
|seealso= [[setDamage]], [[allowDamage]]
}}
}}

Revision as of 16:43, 10 May 2022

Hover & click on the images for description

Description

Description:
Neutralize an object by intrinsic means:
  • soldiers are blown up by mine
  • vehicles are shelled by artillery
  • air units are hit by AA missile
  • underwater units are simply killed.
allowDamage will not prevent the unit getting killed.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
object call BIS_fnc_neutralizeUnit
Parameters:
object: Object
Return Value:
Boolean

Examples

Example 1:
cursorTarget call BIS_fnc_neutralizeUnit;

Additional Information

See also:
setDamageallowDamage

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