Skip to main content

ProjectileConfig

Provides properties to customize the functionality of a projectile. There are two types of projectile: Bullet or Hitscan.

Bullet - projectile with travel time and speed (e.g. pistol bullets, grenades).

Hitscan - projectile with no travel time; instantly hits any object within range that is directly infront (e.g. laser, railgun).

danger

Some properties only apply to a specific type of projectile.

Properties

damage

Amount of damage dealt when the projectile impacts an object.

  • Default: 50
  • Min: 0
  • Max: 255

projectileType

ProjectileType determines the type of projectile visual to use. Specifying None will use the default projectile for the equipped weapon.

damageRadius

Radius of the damage zone - objects within the damage zone when the when the projectile impacts, will receive damage.

  • Default: 0.5
  • Min: 0.1
  • Max: 100

impulse

Amount of impulse to apply to an object receiving damage.

  • Default: 1
  • Min: 0
  • Max: 100

speed

Speed of the projectile (only applies to bullet-type projectiles).

  • Default: 10
  • Min: 0.1
  • Max: 15

gravity

Amount of gravity to apply to the projectile (only applies to bullet-type projectiles).

  • Default: -10
  • Min: -100
  • Max: 100

lifetime

Maximum length of time (in seconds) the projectile can exist (only applies to bullet-type projectiles).

  • Default: 5
  • Min: 0.1
  • Max: 10

size

Determines the physical size of the projectile (only applies to bullet-type projectiles).

  • Default: 1
  • Min: 0.1
  • Max: 10

relativeVelocityMultiplier

Determines how much the velocity of the object shooting the projectile is added to the initial velocity of the projectile (only applies to bullet-type projectiles).

  • Default: 1
  • Min: 0.1
  • Max: 10

range

Maximum range of the projectile. This only applies for hitscan style projectiles (only applies to hitscan-type projectiles).

  • Default: 10
  • Min: 0.1
  • Max: 100

projectileColor

Primary Color of the projectile.