get_resource_cost_unit

Get the cost per (time) unit for a resource.

The cost for the unit of a resource is as a cost incurred every time an activity uses this resource. The total cost then depends on both the duration and resource demand of the activity that makes use of this resource. Its value can be set at the P2Resource:set_resource_cost_unit function.

Parameters: 
I/O Type Name Description
input integer ID resource ID
output float cost cost per unit
Learn More: 

Step inside PMKC.

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