User Tools

Site Tools


4rpl:commands:stununitsinrange

This is an old revision of the document!


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).

Examples

StunUnitsInRange(50 50 20 false)

Index

4rpl/commands/stununitsinrange.1614207584.txt.gz · Last modified: 2025/02/14 14:56 (external edit)