SHAPE_* Constant Group
SHAPE_* constants are used in the GetFirstObjectInShape() and GetNextObjectInShape() functions.
Constants
fSize Value relates directly to the value put into GetFirstObjectInShape and taken from that description.
Constant
|
Value
|
fSize Value
|
Description
|
SHAPE_CONE
|
1
|
fSize is the widest radius of the cone
|
A cone. The difference(s) between SHAPE_CONE and SHAPE_SPELLCONE are unknown; it's rarely used, only really used for one main ability SPELLABILITY_KRENSHAR_SCARE - nw_s1_krenscare.nss (as well as a few like Gem Spray, Wod of Wonder and Butterflies item spell effects).
Note: This may be buggy. It is suggested you don't use this.
|
|
SHAPE_CUBE
|
2
|
fSize is half the length of one of the sides of the cube
|
|
SHAPE_SPELLCONE
|
3
|
fSize is the length of the cone in the direction of lTarget. Spell cones are always 60 degrees with the origin at OBJECT_SELF.
|
A more reliable cone. 60 degrees is a solid amount of "width". The difference(s) between SHAPE_CONE and SHAPE_SPELLCONE are not fully. This is used by 99% of normal spells, eg; SPELL_BURNING_HANDS - nw_s0_burnhand.nss
|
|
SHAPE_SPELLCYLINDER
|
0
|
fSize is the length of the cylinder. Spell Cylinder's always have a radius of 1.5m.
|
A cylinder, eg; SPELL_LIGHTNING_BOLT - nw_s0_lghtnbolt.nss
|
|
SHAPE_SPHERE
|
4
|
fSize is the radius of the sphere
|
A sphere. eg; SPELL_FIREBALL - nw_s0_fireball.nss
|
|
See Also