OnRocketLaunched
Usage
- No return behavior
Example Autogenerated
csharp
private void OnRocketLaunched( BasePlayer player, BaseEntity raycastHit )
{
Puts( "OnRocketLaunched works!" );
}
Location
- BaseLauncher::SV_Launch(BaseEntity/RPCMessage msg)
csharp
//---
component2.InitializeVelocity(this.GetInheritedVelocity(player, vector2) + vector2 * component2.speed * this.initialSpeedMultiplier);
}
baseEntity2.Spawn();
this.ProjectileLaunched_Server(component2);
Facepunch.Rust.Analytics.Azure.OnExplosiveLaunched(player, baseEntity2, this);
Interface.CallHook("OnRocketLaunched", player, baseEntity2);
base.StartAttackCooldown(base.ScaleRepeatDelay(this.repeatDelay));
Item ownerItem = base.GetOwnerItem();
if (ownerItem == null)
{
return;
//---