Actor:SwapPrevInventory

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
Beautifybot (Talk | contribs)
(updating function page)

Latest revision as of 00:49, 28 June 2012

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