YesNoOk
avatar

NumProj (Triggers) (Read 4633 times)

Started by Ricepigeon, September 15, 2015, 09:37:37 pm
Share this topic:
NumProj (Triggers)
New #1  September 15, 2015, 09:37:37 pm
  • *****
  • Thanks and God bless
    • USA
    • ricepigeon.neocities.org
Returns the total number of projectiles currently owned by the player.

Format:
    NumProj
Arguments:
    none
Return type:
    int
Error conditions:
    none

Examples:
Code:
trigger1 = NumProj = 0
  Triggers if the player has no currently active projectiles.

Related SCTRL:
Projectile (SCTRL) 1.0 + 1.1b

Related Triggers:
NumProjID (Triggers)
ProjCancelTime (Triggers)
ProjContact(*,***) (Triggers)
ProjContactTime (Triggers)
ProjGuarded(*,***) (Triggers)
ProjGuardedTime (Triggers)
ProjHit(*,***) (Triggers)
ProjHitTime (Triggers)

Additional Notes:
Keep in mind that the NumProj trigger only detects projectiles that have been created through the use of the Projectile SCTRL. Helper-based projectiles will not be detected by this trigger.

Additionally, because all projectiles created through the use of the Projectile SCTRL immediately become owned by the root (player character) when created, attempting to use the NumProj trigger from inside a helper state will always return a value of 0, even if the projectile was created by that same helper. Due to this, you should use the redirect "root,NumProj" trigger instead if you intend to use the NumProj trigger from within a helper state.
Last Edit: November 25, 2015, 04:17:52 am by Odb718