- Exported PickNewWeapon function from PlayerPawn to ZScript.

This commit is contained in:
player701 2018-10-13 20:34:12 +03:00 committed by Christoph Oelckers
commit 6dc026895c
2 changed files with 7 additions and 0 deletions

View file

@ -1195,6 +1195,12 @@ AWeapon *APlayerPawn::PickNewWeapon(PClassActor *ammotype)
return best;
}
DEFINE_ACTION_FUNCTION(APlayerPawn, PickNewWeapon)
{
PARAM_SELF_PROLOGUE(APlayerPawn);
PARAM_CLASS(ammo, AActor);
ACTION_RETURN_POINTER(self->PickNewWeapon(ammo));
}
//===========================================================================
//
// APlayerPawn :: GiveDeathmatchInventory