OnNearbyTurretsScan
Usage
- No return behavior
Example Autogenerated
csharp
private void OnNearbyTurretsScan( )
{
Puts( "OnNearbyTurretsScan works!" );
}
Location
- AutoTurret::UpdateNearbyTurrets(bool created)
csharp
private void UpdateNearbyTurrets(bool created)
{
List<AutoTurret> list = Facepunch.Pool.Get<List<AutoTurret>>();
if (Interface.CallHook("OnNearbyTurretsScan", this, list, created) == null)
{
Vis.Entities<AutoTurret>(base.transform.position, ConVar.Sentry.interferenceradius, list, 256, QueryTriggerInteraction.Ignore);
}
foreach (AutoTurret current in list)
{
//---