- also added the 'amount' parameter to DropInventroy and A_DropInventory script functions.
This commit is contained in:
parent
e2d5a708f8
commit
73cceea994
3 changed files with 5 additions and 4 deletions
|
|
@ -3663,13 +3663,14 @@ DEFINE_ACTION_FUNCTION(AActor, A_DropInventory)
|
|||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_CLASS(drop, AInventory);
|
||||
PARAM_INT_DEF(amount);
|
||||
|
||||
if (drop)
|
||||
{
|
||||
AInventory *inv = self->FindInventory(drop);
|
||||
if (inv)
|
||||
{
|
||||
self->DropInventory(inv);
|
||||
self->DropInventory(inv, amount);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue