affectundead

weaponmanual page 5

affectundead

Arguments

Takes no arguments.

What it does

The weapon only affects undead.

— modding manual, page 5 (as a weapon command)

From the base game data

weapon data
affectundead

Interacts with

affecthuman commandaffectanimal commandaffectmale commandaffectfemale commandhuman commandundead commandanimal commandfemale command

A weapon with an affect… restriction only harms matching targets: affectundead requires the undead flag, affectanimal the animal flag, and affectmale / affectfemale check the being's sex (female marks a monster or item wearer as female). affecthuman is the odd one out — the manual says it keys on the res_convert attribute rather than the human flag.

— manual

← All commands