Advertisement
invention8

CraftingScript

Jun 22nd, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. Scriptname SAM03_zGolemCraftScript extends ObjectReference
  2.  
  3. Event OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer)
  4. if (newContainer == Game.GetPlayer())
  5.  
  6. ;Remove the item, always
  7. Game.GetPlayer().RemoveItem(CraftedItem,1, false)
  8.  
  9. ;run the action we want, in this case, it's to enable an object
  10. MarkerToBeEnabled.Enable()
  11.  
  12. endif
  13. EndEvent
  14.  
  15. ObjectReference Property MarkerToBeEnabled Auto
  16. {The marker to enable}
  17.  
  18. MiscObject Property CraftedItem Auto
  19. {The MiscObject that we remove, should be the same as what I'm attached to.}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement