Difference between revisions of "TrapEffectStruct"
From Dragon Age Toolset Wiki
m (Created) |
m (Adding brief) |
||
Line 1: | Line 1: | ||
{{Struct | {{Struct | ||
|name = TrapEffectStruct | |name = TrapEffectStruct | ||
− | |brief = | + | |brief = Trap effect data for one of the traps effects (each trap can have up to four effects defined in [[Traps.xls|traps]] 2da). |
|member1type = int | |member1type = int | ||
|member1name = nEffect | |member1name = nEffect |
Latest revision as of 00:07, 31 August 2011
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;
};
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.