This trigger takes an optional ID number as a suffix. If the ID number is omitted, ProjContact returns true if any of the player's projectiles either successfully hit the opponent or were guarded by the opponent.

When the ID number is specified, ProjContact returns true only if any of the player's projectiles with the specified ID number either successfully hit the opponent or was guarded.

Format:

ProjContact[ID] = value

ProjContact[ID] = value, [oper] value2

Arguments:

Return type: boolean (0 if false or 1 if true)

Error conditions: none

Details:

ProjContact will trigger once for each hit of the projectile, so a multi-hit projectile can trigger multiple times.

The first form of ProjContact shown above is only valid for one tick after contact, unlike MoveContact.

For the second form, ProjContact returns true if the projectile made contact n ticks ago, where n is a nonnegative number satisfying the relation "n (oper) value2".

Example:

trigger1 = ProjContact1234 = 1
; Triggers if a projectile with ID 1234 just made contact with the opponent.

trigger1 = ProjContact456 = 0, < 15
; Triggers if no projectile with ID 456 made contact in the last 15 ticks.