GetUsedPowers

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(powers:Array) ref.GetUsedPowers

Returns an Array containing information about all greater powers which the calling actor has used. This includes powers cast by the actor within the last 24 hours as well as any powers flagged as used by SetCanCastPower and SetPowerTimer.


The return value is an Array of StringMaps:

GetUsedPowers[n]["power"] := ref ; the greater power
GetUsedPowers[n]["timer"] := float ; number of real-time seconds until the power becomes usable again