This trigger takes an required nonnegative ID number as an argument. If the player's last projectile to make any kind of contact successfully hit the opponent and had the specified ID number, then ProjHit returns the number of ticks since that contact occurred. If the specified ID number is 0, then the projectile ID is not checked. If no projectile meets all the above conditions, then ProjHitTime returns -1.

Format: ProjHitTime(exprn)

Arguments:

Return type: int

Error conditions: Returns 'Bottom' if exprn evaluates to 'Bottom'. If a negative ID is specified, then the ID defaults to zero.

Example:

trigger1 = ProjHitTime(1234) = 1
; Triggers if a projectile with ID 1234 just made successful contact with the opponent.

trigger1 = ProjHitTime(0) != -1 && ProjHitTime(0) < 15
; Triggers if any of the player's projectiles made successful contact with the opponent within the last 15 ticks.