IsWeaponOut

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Returns 1 if the calling actor currently has a weapon out, and 0 otherwise.

Syntax

[help]
(0, 1:int) [ActorRefID].IsWeaponOut

Example

if BuddyRef.IsWeaponOut 

Notes

  • The value returned by IsWeaponOut will change when the weapon becomes attached to the weapon node. For NPCs without a weapon, this is at the end of the equip/unequip animations.
  • IsWeaponOut will always return 0 for Creatures without a weapon.
  • IsWeaponOut doesn't return 1 until about midway through the equip animation. To check if the equip anim is over, use:
myRef.GetAnimAction == -1

See Also