Editors Note: 1.06 added the [currency] arg
Functions Documentation | |
Name | objCharge |
Syntax | (objCharge obj [currency] amount) -> integer |
Argument List | obj: The spaceObject that you want to take credits away from. [Currency]: the UNID of the currency amount: The amount of credits you want to remove. |
Returns | integer: The remaining balance of the spaceObject you removed creadits from |
Category | cash, spaceobject, economy |
Description | Takes credits away from the the spaceObject. |
Example |
(objCharge gSource 200) Removes 200 credits from whatever gSource is bound too. |
Comment | Useful with working with the credits of stations. The player's credits are not bound to the player's ship. |