SpellsIsFlying

From NWN Lexicon
Jump to navigationJump to search


spellsIsFlying(object)

Returns TRUE if the target creature is flying.

int spellsIsFlying(
    object oCreature
);

Parameters

oCreature

The creature's whose flying ability you want to know about.


Description

Returns TRUE if the target creature is flying.



Remarks

Returns TRUE if oCreature's appearance type is any of the following:

APPEARANCE_TYPE_ALLIP APPEARANCE_TYPE_ALLIP APPEARANCE_TYPE_BAT APPEARANCE_TYPE_BAT_HORROR
APPEARANCE_TYPE_BEHOLDER APPEARANCE_TYPE_BEHOLDER_EYEBALL APPEARANCE_TYPE_BEHOLDER_MAGE APPEARANCE_TYPE_BEHOLDER_MOTHER
APPEARANCE_TYPE_DEMI_LICH APPEARANCE_TYPE_ELEMENTAL_AIR APPEARANCE_TYPE_ELEMENTAL_AIR_ELDER APPEARANCE_TYPE_ALLIP
APPEARANCE_TYPE_BAT APPEARANCE_TYPE_BAT_HORROR APPEARANCE_TYPE_BEHOLDER APPEARANCE_TYPE_BEHOLDER_EYEBALL
APPEARANCE_TYPE_BEHOLDER_MAGE APPEARANCE_TYPE_BEHOLDER_MOTHER APPEARANCE_TYPE_DEMI_LICH APPEARANCE_TYPE_ELEMENTAL_AIR
APPEARANCE_TYPE_ELEMENTAL_AIR_ELDER APPEARANCE_TYPE_ELEMENTAL_WATER APPEARANCE_TYPE_ELEMENTAL_WATER_ELDER APPEARANCE_TYPE_FAERIE_DRAGON
APPEARANCE_TYPE_FAIRY APPEARANCE_TYPE_FALCON APPEARANCE_TYPE_HARPY APPEARANCE_TYPE_HELMED_HORROR
APPEARANCE_TYPE_IMP APPEARANCE_TYPE_LANTERN_ARCHON APPEARANCE_TYPE_MEPHIT_AIR APPEARANCE_TYPE_MEPHIT_DUST
APPEARANCE_TYPE_MEPHIT_EARTH APPEARANCE_TYPE_MEPHIT_FIRE APPEARANCE_TYPE_MEPHIT_ICE APPEARANCE_TYPE_MEPHIT_MAGMA
APPEARANCE_TYPE_MEPHIT_OOZE APPEARANCE_TYPE_MEPHIT_SALT APPEARANCE_TYPE_MEPHIT_STEAM APPEARANCE_TYPE_MEPHIT_WATER
APPEARANCE_TYPE_QUASIT APPEARANCE_TYPE_RAVEN APPEARANCE_TYPE_SHADOW APPEARANCE_TYPE_SHADOW_FIEND
APPEARANCE_TYPE_SPECTRE APPEARANCE_TYPE_WILL_O_WISP APPEARANCE_TYPE_WRAITH APPEARANCE_TYPE_WYRMLING_BLACK
APPEARANCE_TYPE_WYRMLING_BLUE APPEARANCE_TYPE_WYRMLING_BRASS APPEARANCE_TYPE_WYRMLING_BRONZE APPEARANCE_TYPE_WYRMLING_COPPER
APPEARANCE_TYPE_WYRMLING_GOLD APPEARANCE_TYPE_WYRMLING_GREEN APPEARANCE_TYPE_WYRMLING_RED APPEARANCE_TYPE_WYRMLING_SILVER
APPEARANCE_TYPE_WYRMLING_WHITE


Returns FALSE for all other appearance types.

Requirements

#include " x0_i0_spells "


Version

???

See Also

functions: 

GetAppearanceType

constants: 

APPEARANCE_TYPE_*



author: Mistress