btech.set_part_cost

Sets the configured cost of a part.

Function

Synopsis

btech.set_part_cost( part_name, cost )

Arguments

string part_name
A recognized long or very-long part name.
number cost
The non-negative cost.

Returns

boolean success
true after the operation completes without a legacy error.

Notes

This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. This operation requires a build with advanced economy support.

See Also