OnFlameExplosion
Usage
- No return behavior
Example Autogenerated
csharp
private void OnFlameExplosion( FlameExplosive instance, Collider component )
{
Puts( "OnFlameExplosion works!" );
}
Location
- FlameExplosive::FlameExplode(UnityEngine.Vector3 surfaceNormal)
csharp
//---
float y = UnityEngine.Random.Range(0f, 360f);
Quaternion rotation = Quaternion.Euler(0f, y, 0f);
baseEntity.transform.SetPositionAndRotation(position, rotation);
baseEntity.creatorEntity = ((this.creatorEntity == null) ? baseEntity : this.creatorEntity);
baseEntity.Spawn();
Interface.CallHook("OnFlameExplosion", this, component);
Vector3 vector = modifiedAimConeDirection.normalized * UnityEngine.Random.Range(this.minVelocity, this.maxVelocity) * this.velocityCurve.Evaluate(num2 * UnityEngine.Random.Range(1f, 1.1f));
FireBall component2 = baseEntity.GetComponent<FireBall>();
if (component2 != null)
{
component2.SetDelayedVelocity(vector);
//---