Mechanic
projectile
Launches a custom projectile at the target
Aliases
p
Configuration Fields (10)
| Name | Type | Default | Description |
|---|---|---|---|
| type | ProjectileType | NORMAL | The type of the projectile, NORMAL or METEOR |
| gravity g | PlaceholderFloat | 0 | The gravity modifier the projectile uses |
| bounces PREM bounce | boolean | false | The projectile can bounce |
| bounceVelocity bv | float | 0.9 | The velocity modifier of the bounce |
| highaccuracymode ham | ProjectileTriOption | PLAYERS_ONLY | Whether to use high-accuracy mode, which raytraces every tick to ensure the projectile cannot ever go anything |
| hugSurface hs | ProjectileSurfaceMode | false | Whether the projectile will hug the surface |
| hugLiquid hugWater, hugLava | ProjectileSurfaceMode | false | If hugSurface is set, determines whether the projectile will hug liquid |
| heightFromSurface hfs | float | — | |
| maxClimbHeight mch | float | 3 | The number of attempts the projectile will try to increase its y-location before terminating the projectile |
| maxDropHeight mdh | float | 10 | The number of attempts the projectile will try to decrease its y-location before terminating the projectile |
Universal Mechanic Options
Mentioned by
AuraComponentprojectilerebound
Rebounds incoming projectiles away from the aura holder
ConditioncanBeHitByProjectile
Whether the target can be hit by a projectile
ConditionprojectileHasEnded
Checks if the calling projectile has ended
Mechanicmodifyprojectile
Modifies an attribute of the projectile that executed the mechanic
Mechanicprojectilevelocity
Sets the velocity on the calling projectile
Mechanicsetprojectilebulletmodel
Sets the CustomModelData on the current projectile's bullet
MechanicsetProjectileDirection
Sets the projectile's current direction to the given target
Mechanicshoot
Shoots a projectile at the target location
- Author:
- Ashijin