OnMlrsRocketFired
Usage
- No return behavior
Example Autogenerated
csharp
private void OnMlrsRocketFired( MLRS instance, ServerProjectile serverProjectile )
{
Puts( "OnMlrsRocketFired works!" );
}
Location
- MLRS::FireNextRocket()
csharp
//---
Vector3 aimToTarget = Ballistics.GetAimToTarget(this.firingPoint.position, target, this.rocketSpeed, this.vRotMax, this.rocketBaseGravity, this.minRange, out num);
ServerProjectile serverProjectile;
if (base.TryFireProjectile(rocketContainer, AmmoTypes.MLRS_ROCKET, firingPos, aimToTarget, this.rocketOwnerRef.Get(true) as BasePlayer, 0f, 0f, out serverProjectile))
{
serverProjectile.gravityModifier = num / -Physics.gravity.y;
Interface.CallHook("OnMlrsRocketFired", this, serverProjectile);
this.nextRocketIndex--;
return;
}
this.EndFiring();
}