Actor:SwapNextInventory

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxSwapNextInventory( * A pointer to the external MovableObject to trade in. Ownership IS xferred!
  • If 0 is passed in, nothing will be added to the inventory.
  • Whether to mute the sound on this event. Override for the loading screen hack. )
Description:
Swaps the next MovableObject carried by this Actor and puts one not currently carried into the into the back of the inventory of this.
ReturnsThe next MovableObject in this Actor's inventory. Ownership IS xferred! If there are no MovableObject:s in inventory, 0 will be returned.




Example
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools