Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Clockwork.item is a library, with a function named New, that accepts a string as an input parameter, and returns an item table.
- local ITEM = Clockwork.item:New("consumable_base");
- -- All kinds of variables the item uses, the type varies but it should be self explanatory.
- -- Any text that isn't the variable or a function should be in quotes, basically.
- ITEM.name = "Banana";
- ITEM.uniqueID = "banana";
- ITEM.spawnValue = 7;
- ITEM.spawnType = "consumable";
- ITEM.category = "Consumable";
- ITEM.cost = 25;
- ITEM.health = 6;
- ITEM.hunger = 40;
- ITEM.thirst = 15;
- ITEM.model = "models/bioshockinfinite/loot_banana.mdl";
- ITEM.weight = 0.4;
- ITEM.access = "v";
- ITEM.business = true;
- ITEM.description = "A fresh yellow-skinned banana, grown by the powers that be in the outlands. It tastes sweet and succulent... Get your mind out of the gutter.";
- -- Now you're calling the Register function on the item table you got from Clockwork.item:New, again, it's a function so put a colon :
- ITEM:Register();
Advertisement
Add Comment
Please, Sign In to add comment