Home

ProjectilePrototype

Entity with limited lifetime that can hit other entities and has triggers when this happens.

Parent

Properties

acceleration

Must be != 0 if turning_speed_increases_exponentially_with_projectile_speed is true.

animation

rotatable

Whether the animation of the projectile is rotated to match the direction of travel.

enable_drawing_with_mask

direction_only

Setting this to true can be used to disable projectile homing behaviour.

hit_at_collision_position

When true the entity is hit at the position on its collision box the projectile first collides with. When false the entity is hit at its own position.

force_condition

piercing_damage

Whenever an entity is hit by the projectile, this number gets reduced by the health of the entity. If the number is then below 0, the final_action is applied and the projectile destroyed. Otherwise, the projectile simply continues to its destination.

max_speed

Must be greater than or equal to 0.

turn_speed

Must be greater than or equal to 0.

speed_modifier

height

action

Executed when the projectile hits something.

final_action

Executed when the projectile hits something, after action and only if the entity that was hit was destroyed. The projectile is destroyed right after the final_action.

light

smoke

hit_collision_mask

Defaults to the mask from UtilityConstants::default_collision_masks when indexed by "projectile/hit".

turning_speed_increases_exponentially_with_projectile_speed

shadow