Projectile
Documentation for the Projectile asset type.
Location
Projectiles
Use in Your Files
Add this to your JSON files for IDE autocompletion and validation:
"$schema": "https://hytaledb.ginco.gg/schemas/Projectile.schema.json" Schema
Appearance
stringnull
Radius
number
Height
number
VerticalCenterShot
number
HorizontalCenterShot
number
DepthShot
number
PitchAdjustShot
boolean
MuzzleVelocity
number
TerminalVelocity
number
Gravity
number
Bounciness
number
ImpactSlowdown
number
SticksVertically
boolean
ComputeYaw
boolean
ComputePitch
boolean
ComputeRoll
boolean
TimeToLive
number
BounceSoundEventId
stringnull
BounceParticles unknown
Any of
HitSoundEventId
stringnull
HitParticles unknown
Any of
Damage
integer
DeadTime
number
MissSoundEventId
stringnull
MissParticles unknown
Any of
DeadTimeMiss
number
DeathSoundEventId
stringnull
DeathParticles unknown
Any of
DeathEffectsOnHit
boolean
ExplosionConfig unknown
The explosion config associated with this projectile
Any of
Density
number
WaterTerminalVelocityMultiplier
number
WaterHitImpulseLoss
number
DampingRotation
number
RotationSpeedVelocityRatio
number
SwimmingDampingFactor
number
RotationMode
stringnull
All of
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "Projectile.json",
"title": "Projectile",
"description": "Projectile asset type",
"type": "object",
"allOf": [
{
"$ref": "base.schema.json"
}
],
"properties": {
"Appearance": {
"type": [
"string",
"null"
]
},
"Radius": {
"type": "number",
"default": 0
},
"Height": {
"type": "number",
"default": 0
},
"VerticalCenterShot": {
"type": "number",
"default": 0
},
"HorizontalCenterShot": {
"type": "number",
"default": 0
},
"DepthShot": {
"type": "number",
"default": 0
},
"PitchAdjustShot": {
"type": "boolean",
"default": false
},
"MuzzleVelocity": {
"type": "number",
"default": 0
},
"TerminalVelocity": {
"type": "number",
"default": 0
},
"Gravity": {
"type": "number",
"default": 0
},
"Bounciness": {
"type": "number",
"default": 0
},
"ImpactSlowdown": {
"type": "number",
"default": 0
},
"SticksVertically": {
"type": "boolean",
"default": false
},
"ComputeYaw": {
"type": "boolean",
"default": true
},
"ComputePitch": {
"type": "boolean",
"default": true
},
"ComputeRoll": {
"type": "boolean",
"default": true
},
"TimeToLive": {
"type": "number",
"default": 0
},
"BounceSoundEventId": {
"type": [
"string",
"null"
]
},
"BounceParticles": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/WorldParticle"
},
{
"type": "null"
}
]
},
"HitSoundEventId": {
"type": [
"string",
"null"
]
},
"HitParticles": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/WorldParticle"
},
{
"type": "null"
}
]
},
"Damage": {
"type": "integer",
"default": 0
},
"DeadTime": {
"type": "number",
"default": 0
},
"MissSoundEventId": {
"type": [
"string",
"null"
]
},
"MissParticles": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/WorldParticle"
},
{
"type": "null"
}
]
},
"DeadTimeMiss": {
"type": "number",
"default": 10
},
"DeathSoundEventId": {
"type": [
"string",
"null"
]
},
"DeathParticles": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/WorldParticle"
},
{
"type": "null"
}
]
},
"DeathEffectsOnHit": {
"type": "boolean",
"default": false
},
"ExplosionConfig": {
"description": "The explosion config associated with this projectile",
"anyOf": [
{
"$ref": "common.schema.json#/$defs/ExplosionConfig"
},
{
"type": "null"
}
]
},
"Density": {
"type": "number",
"default": 2000
},
"WaterTerminalVelocityMultiplier": {
"type": "number",
"default": 1
},
"WaterHitImpulseLoss": {
"type": "number",
"default": 0
},
"DampingRotation": {
"type": "number",
"default": 0
},
"RotationSpeedVelocityRatio": {
"type": "number",
"default": 2
},
"SwimmingDampingFactor": {
"type": "number",
"default": 1
},
"RotationMode": {
"type": [
"string",
"null"
],
"title": "ROTATION_MODE",
"enum": [
"None",
"Velocity",
"VelocityDamped"
],
"default": "Velocity"
}
}
}