Item:hook

From Nutscript Developer Wiki
Jump to navigation Jump to search


    Item:hook(name, func)

This function assigns a function that called when the specific action of the item (like Use, Take, Drio) is called. With this function, you can add more effects of the items without editing the actual base. If you're planning to do little bit more stuffs with the default base, I suggust you to use this function.

Arguments[edit]

  • String name
  • Function func

Return Values[edit]

none

Examples[edit]

none