GetTempIngestibleEffects
From GECK
A function added by the JohnnyGuitar NVSE Plugin version 5.07.
Contents
Description
Returns a two-dimensional array_var containing all Ingestible forms currently having an effect on the player, their duration and remaining time. The elements in the array are structured as follows:
Index Attribute ----- --------- 0 Ingestible: form 1 Time Left : float 2 Duration : float
Syntax
(tempEffects:array_var) GetTempIngestibleEffects
Example
let aTempEffects := GetTempIngestibleEffects let iIndex := 0 while iIndex < ar_Size aTempEffects let rIngestible := aTempEffects[iIndex][0] let fTimeLeft := aTempEffects[iIndex][1] let fDuration := aTempEffects[iIndex][2] let iIndex += 1 loop
Notes
- As each Ingestible usually contains multiple Effect entries with different duration, the Effect with the longest duration is used to reflect it in the array.