OnWorldProjectileCreate
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnWorldProjectileCreate( HitInfo info, Item item )
{
Puts( "OnWorldProjectileCreate works!" );
}
Location
- BasePlayer::CreateWorldProjectile(HitInfo info, ItemDefinition itemDef, ItemModProjectile itemMod, Projectile projectilePrefab, Item recycleItem)
csharp
//---
{
return;
}
Vector3 projectileVelocity = info.ProjectileVelocity;
Item item = (recycleItem != null) ? recycleItem : ItemManager.Create(itemDef, 1, 0uL, true);
if (Interface.CallHook("OnWorldProjectileCreate", info, item) != null)
{
return;
}
BaseEntity baseEntity;
if (!info.DidHit)
//---