The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => MUGEN Class => Topic started by: Just No Point on October 20, 2015, 03:30:09 pm

Title: ProjContactTime (Triggers)
Post by: Just No Point on October 20, 2015, 03:30:09 pm
This trigger takes an required nonnegative ID number as an argument. If the player's last projectile to make any kind of contact, made contact with the opponent and had the specified ID number, then ProjContactTime 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 ProjContactTime returns -1.

Format:
ProjContactTime(exprn)

Arguments:
exprn
Expression evaluating to a nonnegative ID number (int).

Return type:
int

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

Examples:
Code:
1. trigger1 = ProjContactTime(1234) = 1
  Triggers if a projectile with ID 1234 just made contact with
  the opponent.
2. trigger1 = ProjContactTime(0) != -1 && ProjContactTime(0) < 15
  Triggers if any of the player's projectiles made successful
  contact with the opponent within the last 15 ticks.

Related SCTRL:
Projectile (SCTRL) 1.0 + 1.1b (http://mugenguild.com/forum/topics/projectile-sctrl-169755.0.html)

Related Triggers:
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)
ProjContact(*,***) (Triggers) (http://mugenguild.com/forum/topics/projcontact-triggers-169923.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)