CanSpectateTarget
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanSpectateTarget( BasePlayer instance, string strName )
{
Puts( "CanSpectateTarget works!" );
}
Location
- BasePlayer::UpdateSpectateTarget(string strName)
csharp
public void UpdateSpectateTarget(string strName)
{
if (Interface.CallHook("CanSpectateTarget", this, strName) != null)
{
return;
}
this.spectateFilter = strName;
IEnumerable<BaseEntity> source;
//---