Skip to content

OnRocketLaunched

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnRocketLaunched( BasePlayer player, BaseEntity baseEntity )
{
    Puts( "OnRocketLaunched works!" );
}

Location

  • BaseLauncher::SV_Launch(BaseEntity.RPCMessage msg)
csharp
//---
		component2.InitializeVelocity(GetInheritedVelocity(player, vector2) + vector2 * component2.speed * initialSpeedMultiplier);
	}
	baseEntity.Spawn();
	ProjectileLaunched_Server(component2);
	Facepunch.Rust.Analytics.Azure.OnExplosiveLaunched(player, baseEntity, this);
	Interface.CallHook("OnRocketLaunched", player, baseEntity);
	StartAttackCooldown(ScaleRepeatDelay(repeatDelay));
	Item ownerItem = GetOwnerItem();
	if (ownerItem != null)
	{
		if (!base.UsingInfiniteAmmoCheat)
//---

Released under the MIT License.