object - commandobject - unit


unit GetAttacker()

Scope: public

Parameters
none

Return values
Unit which as last shoot to this unit, or null if not present.

Description
If unit is hit, unit which shoot to it is remembered, and you can access it by this function.

See also
ClearAttacker