Projectile Common Functions
Common.enableReflectionListener(options)
Helper method to add healing functionality from reflectbox=>hitbox collisions.
Kind: global function
Param | Description |
---|---|
options | The value assigned to "mode" determines the behavior of the projectile when it is reflected. "X"= Flips and reverse momentum horizontally. "Y"= Flips and reverses momentum vertically. "XY"= Flips and reverses momentum both horizontally and vertically. Set replaceOwner to true change the owner of the projectile to the object responsible for reflecting it. |
Common.disableReflectionListener()
Helper method to disable the reflection functionality granted by enableReflectionListener().
Kind: global function