Index

:!: Available in version 1.3 and later.

StunUnitsInRange

StunUnitsInRange(<-cellX <-cellY <-range <-enemy)

Description

Stuns the units in range of the specified cell coordinates. This is the same routine that shrapnel uses to stun units. The 'enemy' parameter is a bool indicting if only enemy, or non enemies, should be stunned. Note that for a unit to be stunned, it must also have the CAN_STUN property set (regardless of the enemy parameter).

:NOTE: Default StunCount is 10 seconds or 300 Frames.

Examples

StunUnitsInRange(50 50 20 false)

Index