OnHelicopterDropCrate
Usage
- No return behavior
Example Autogenerated
csharp
private void OnHelicopterDropCrate( CH47HelicopterAIController instance )
{
Puts( "OnHelicopterDropCrate works!" );
}
Location
- CH47HelicopterAIController::DropCrate()
csharp
//---
Vector3 pos = base.transform.position + Vector3.down * 5f;
Quaternion rot = Quaternion.Euler(0f, UnityEngine.Random.Range(0f, 360f), 0f);
BaseEntity baseEntity = GameManager.server.CreateEntity(this.lockedCratePrefab.resourcePath, pos, rot, true);
if (baseEntity)
{
Interface.CallHook("OnHelicopterDropCrate", this);
baseEntity.SendMessage("SetWasDropped");
baseEntity.Spawn();
}
this.numCrates--;
}