CheckWeapon

From Eternity Wiki
Revision as of 15:21, 1 November 2021 by Printz (talk | contribs) (Created page with "{{ACSFunction|description=Checks if activator's current weapon matches name. |usage=int CheckWeapon(str weapon) |parameters=*weapon: the EDF name of the weapon |return=TRUE if...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description[edit]

This is an ACS built-in function.

Checks if activator's current weapon matches name.

Usage[edit]

int CheckWeapon(str weapon)

Parameters[edit]

  • weapon: the EDF name of the weapon

Return value[edit]

TRUE if activator's weapon matches weapon

Examples[edit]

No examples given.

Notes[edit]

This only works for a player activator

This function's identification in zspecial.acs is: ACS internal.

See also[edit]