Modifié par M. Rieder, 04 février 2012 - 01:25 .
Question onf EffectAreaOfEffect()(resolved)
Débuté par
M. Rieder
, févr. 04 2012 02:43
#1
Posté 04 février 2012 - 02:43
What is the last argument, string sEffectTag, for? Is it so you can create a blueprint of a trigger which will specify the size of the AOE? If not, how do you specify the size of the AOE?
#2
Posté 04 février 2012 - 03:11
It makes the AOE have a given tag, which can be used to refer to it later, or prevent duplicate AOE's ( see blade barrier ).
Size of the AOE is determined by the 2da referred to as the first argument ( vfx_persistent.2da ), the 3 middle parameters if not "" will let you set custom scripts for it. Lookup that 2da and you will see how to set the size of it.
Size of the AOE is determined by the 2da referred to as the first argument ( vfx_persistent.2da ), the 3 middle parameters if not "" will let you set custom scripts for it. Lookup that 2da and you will see how to set the size of it.
#3
Posté 04 février 2012 - 01:25
Thanks pain.
#4
Posté 05 février 2012 - 09:22
Does anyone happen to know what the default size of a custom-defined AOE is? I've used them many times, but have no idea how far the radius extends.
#5
Posté 05 février 2012 - 10:02
DannJ wrote...
Does anyone happen to know what the default size of a custom-defined AOE is? I've used them many times, but have no idea how far the radius extends.
As far as I know, that is defined by the row the first parameter is linked to. The scripts that are listed in the other parameters can override the OnEnter, OnHB, and OnExit columns for that AOE, but not the other columns.
The size would be set by a combination of the first four columns after the label: Shape, Radius, Width, and Length.
Unfortunately, this means that each time you want a VFX of different size, you need to create a new row. I suppose the alternative would be to have a shape that's bigger than you need and then determine within the scripts whether the object is within the polygon that you want using trig functions.
#6
Posté 06 février 2012 - 01:05
Thanks for the info. I'll look up the constant value for the custom option and check what 2DA line it defaults to.
I usually define the search radius in the custom scripts, but the default radius in the 2DA would still determine when the OnEnter and OnExit scripts fire.
I usually define the search radius in the custom scripts, but the default radius in the 2DA would still determine when the OnEnter and OnExit scripts fire.





Retour en haut






