Skip to main content

throw_item_projectile

Function throw_item_projectile 

Source
pub(super) fn throw_item_projectile<E>(
    context: &mut UseItemContext<'_>,
    params: &ThrowParams,
    create: impl FnOnce(DVec3) -> E,
) -> Option<SharedEntity>
where E: Projectile + ThrowableItemProjectile + Entity + 'static,
Expand description

Throws a projectile plays its sound awards ITEM_USED and consumes one item