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.
1.) ProjContact[ID] = value
2.) ProjContact[ID] = value, [oper] value2
Optional ID number.
Value to compare against. 0 for false, 1 for true.
=, !=, <, >, <=, >=
Time value to compare against.
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". Specifying an ID number of 0 gives the same behavior as if the ID number is omitted (check all projectiles).
1. trigger1 = ProjContact1234 = 1
Triggers if a projectile with ID 1234 just made contact with the
2. trigger1 = ProjContact456 = 0, < 15
Triggers if no projectile with ID 456 made contact in the last 15
Projectile (SCTRL) 1.0 + 1.1b (http://mugenguild.com/forum/topics/projectile-sctrl-169755.0.html)
NumProj (Triggers) (http://mugenguild.com/forum/topics/numproj-triggers-169143.0.html)
NumProjID (Triggers) (http://mugenguild.com/forum/topics/numprojid-triggers-169144.0.html)
ProjCancelTime (Triggers) (http://mugenguild.com/forum/topics/projcanceltime-triggers-169922.0.html)
ProjContactTime (Triggers) (http://mugenguild.com/forum/topics/projcontacttime-triggers-169924.0.html)
ProjGuarded(*,***) (Triggers) (http://mugenguild.com/forum/topics/projguarded-triggers-169925.0.html)
ProjGuardedTime (Triggers) (http://mugenguild.com/forum/topics/projguardedtime-triggers-169926.0.html)
ProjHit(*,***) (Triggers) (http://mugenguild.com/forum/topics/projhit-triggers-169927.0.html)
ProjHitTime (Triggers) (http://mugenguild.com/forum/topics/projhittime-triggers-169928.0.html)
It should be noted that the first form of ProjHit/ProjContact/ProjGuarded may not work properly under some circumstances.
I had an instance where I had a helper that spawned a projectile for two ticks for hitcheck purposes (I could've just used HitDef, but that'd render me vulnerable to the Omega Tom Hanks Killer) every second tick and I wanted this helper to self-destruct the moment the projectile successfully connected.
type = DestroySelf
trigger1 = root,projcontact1000 = 1
The code above should work just right, shouldn't it? Except it didn't in my case. The helper just went through the opponent dealing 4 to 5 hits when I needed one. However, the second form worked as intended:
type = DestroySelf
trigger1 = root,projcontact1000 = 1, = 1
The helper disappeared the moment it hit the enemy. Hope this helps someone struggling with this bug like I had.