Actor:SwapPrevInventory

From Data Realms Wiki

Revision as of 00:49, 28 June 2012 by Beautifybot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
SyntaxSwapPrevInventory( * A pointer to the external MovableObject to trade in. Ownership IS xferred!
  • If 0 is passed in, nothing will be added to the inventory. )
Description:
Swaps the prev MovableObject carried by this Actor and puts one not currently carried into the into the back of the inventory of this.
ReturnsThe prev 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