Difference between revisions of "GetNthActiveEffectDuration"
Jump to navigation
Jump to search
imported>Haama (Created) |
imported>Haama (Fixed example) |
||
Line 10: | Line 10: | ||
short EffectDur | short EffectDur | ||
set EffectDur to (player.GetNthActiveEffectDuration 0) | set EffectDur to (player.GetNthActiveEffectDuration 0) | ||
If the player currently has | If the player currently has two '''Shield''' effects, the first at 10 duration and the second at 90, this will return 10. | ||
==See Also== | ==See Also== |
Revision as of 22:44, 25 November 2007
A command for Oblivion Script Extender
Syntax:
(duration:long) reference.GetNthActiveEffectDuration whichEffect:long (duration:long) reference.GetNthAEDuration whichEffect:long
Returns the duration of the Nth Active Effect on the reference.
Example
short EffectDur set EffectDur to (player.GetNthActiveEffectDuration 0)
If the player currently has two Shield effects, the first at 10 duration and the second at 90, this will return 10.