ScenEdit_UnitX ( )

This function returns the Activating Unit that triggered the current Event.

Note that UnitX() can also be used as a shortcut for ScenEdit_UnitX()

Parameters

  • None

Returns

Unit The triggering unit object or nil

Example
local unit = ScenEdit_UnitX()