Temporarily specifies types of hits that should be allowed hit to the player.

Required parameters:

Optional parameters:

Details:

The player has two hit attribute slots, which can be set using the value or value2 parameters to the HitBy controller. These slots can also be set by the NotHitBy controller. When a slot is set, it gets a timer (the effective time) which counts down toward zero. If the timer has not yet reached zero, the slot is considered to be active.

The player can be hit by a HitDef only if that HitDef's attribute appears in all currently active slots.

Using the HitBy controller sets the specified slot to contain only those hit attributes which appear in the HitBy attribute string.

Example:

; Can be hit only by standing normal attacks
trigger1 = 1
type = HitBy
value = S, NA