CanHelicopterTarget
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanHelicopterTarget( PatrolHelicopterAI instance, BasePlayer ply )
{
Puts( "CanHelicopterTarget works!" );
}
Location
- PatrolHelicopterAI::PlayerVisible(BasePlayer ply)
csharp
public bool PlayerVisible(BasePlayer ply)
{
object returnvar = Interface.CallHook("CanHelicopterTarget", this, ply);
if (returnvar is bool)
{
return (bool)returnvar;
}
Vector3 position = ply.eyes.position;
//---