add_resource

Add a resource to the project and define the type (renewable/consumable). 

This function returns the ID of the new resource.

Parameters: 
I/O Type Name Description
input integer renewable 1 (renewable) or O (consumable)
output integer ID new resource ID

 

Learn More: 

Step inside PMKC.

Example: 
function ()
        io.write('\n')
end
Class: 
P2Resource