- Exported PickNewWeapon function from PlayerPawn to ZScript.
This commit is contained in:
parent
ec7e855a56
commit
6dc026895c
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue