TrapEffectStruct

From Dragon Age Toolset Wiki
Jump to: navigation, search

Trap effect data for one of the traps effects (each trap can have up to four effects defined in traps 2da).

struct TrapEffectStruct{
int nEffect;
int nInt1;
int nInt2;
float fFloat1;
float fFloat2;
float fDuration;
string sResource;
int nTrapType;
};
Members:
nEffect
[Undocumented]
nInt1
[Undocumented]
nInt2
[Undocumented]
fFloat1
[Undocumented]
fFloat2
[Undocumented]
fDuration
[Undocumented]
sResource
column name
nTrapType
row number
Source:

Core Game Resources.sys_traps_h

Remarks

The sResource and nTrapType members are a column name and a row number for a look-up (using the GetM2DAResource function) as a resource is an invalid type for a struct.