ProjectileConfig
Documentation for the ProjectileConfig asset type.
Location
ProjectileConfigs
Use in Your Files
Add this to your JSON files for IDE autocompletion and validation:
"$schema": "https://hytaledb.ginco.gg/schemas/ProjectileConfig.schema.json" Schema
Physics unknown
Any of
Model
string
LaunchForce
number
SpawnOffset
Vector3f
SpawnRotationOffset
Direction
Interactions object
Primary unknown
Any of
Secondary unknown
Any of
Ability1 unknown
Any of
Ability2 unknown
Any of
Ability3 unknown
Any of
Use unknown
Any of
Pick unknown
Any of
Pickup unknown
Any of
CollisionEnter unknown
Any of
CollisionLeave unknown
Any of
Collision unknown
Any of
EntityStatEffect unknown
Any of
SwapTo unknown
Any of
SwapFrom unknown
Any of
Death unknown
Any of
Wielding unknown
Any of
ProjectileSpawn unknown
Any of
ProjectileHit unknown
Any of
ProjectileMiss unknown
Any of
ProjectileBounce unknown
Any of
Held unknown
Any of
HeldOffhand unknown
Any of
Equipped unknown
Any of
Dodge unknown
Any of
GameModeSwap unknown
Any of
Additional properties
Any of
LaunchLocalSoundEventId
stringnull
The sound event played to the throwing player when the projectile is spawned/launched
LaunchWorldSoundEventId
stringnull
The positioned sound event played to surrounding players when the projectile is spawned/launched
ProjectileSoundEventId
stringnull
The looping sound event to attach to the projectile.
All of
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "ProjectileConfig.json",
"title": "ProjectileConfig",
"description": "ProjectileConfig asset type",
"type": "object",
"allOf": [
{
"$ref": "base.schema.json"
}
],
"properties": {
"Physics": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/StandardPhysicsConfig"
},
{
"type": "null"
}
]
},
"Model": {
"type": "string"
},
"LaunchForce": {
"type": "number",
"default": 1
},
"SpawnOffset": {
"default": {
"X": 0,
"Y": 0,
"Z": 0
},
"$ref": "common.schema.json#/$defs/Vector3f"
},
"SpawnRotationOffset": {
"default": {
"Yaw": 0,
"Pitch": 0,
"Roll": 0
},
"$ref": "common.schema.json#/$defs/Direction"
},
"Interactions": {
"type": "object",
"properties": {
"Primary": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Secondary": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Ability1": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Ability2": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Ability3": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Use": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Pick": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Pickup": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"CollisionEnter": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"CollisionLeave": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Collision": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"EntityStatEffect": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"SwapTo": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"SwapFrom": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Death": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Wielding": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"ProjectileSpawn": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"ProjectileHit": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"ProjectileMiss": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"ProjectileBounce": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Held": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"HeldOffhand": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Equipped": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"Dodge": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"GameModeSwap": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
}
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"title": "Reference to RootInteraction"
},
{
"$ref": "RootInteraction.json#"
}
]
},
"propertyNames": {
"enum": [
"Primary",
"Secondary",
"Ability1",
"Ability2",
"Ability3",
"Use",
"Pick",
"Pickup",
"CollisionEnter",
"CollisionLeave",
"Collision",
"EntityStatEffect",
"SwapTo",
"SwapFrom",
"Death",
"Wielding",
"ProjectileSpawn",
"ProjectileHit",
"ProjectileMiss",
"ProjectileBounce",
"Held",
"HeldOffhand",
"Equipped",
"Dodge",
"GameModeSwap"
]
}
},
"LaunchLocalSoundEventId": {
"type": [
"string",
"null"
],
"description": "The sound event played to the throwing player when the projectile is spawned/launched"
},
"LaunchWorldSoundEventId": {
"type": [
"string",
"null"
],
"description": "The positioned sound event played to surrounding players when the projectile is spawned/launched"
},
"ProjectileSoundEventId": {
"type": [
"string",
"null"
],
"description": "The looping sound event to attach to the projectile."
}
}
}