CanUseHelicopter
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanUseHelicopter( BasePlayer player, CH47HelicopterAIController instance )
{
Puts( "CanUseHelicopter works!" );
}
Location
- CH47HelicopterAIController::AttemptMount(BasePlayer player, bool doMountChecks)
csharp
public override void AttemptMount(BasePlayer player, bool doMountChecks = true)
{
if (Interface.CallHook("CanUseHelicopter", player, this) != null)
{
return;
}
if (!player.IsNpc && !player.IsAdmin)
{
//---