Editors Note: 1.06 added the [currency] arg.
Functions Documentation | |
Name | objCredit |
Syntax | (objCredit obj [currency] amount) -> integer |
Argument List | obj: The spaceObject that you want to give credits too. [currency]: the UNID of the currency amount: The amount of credits you want to give. |
Returns | integer: The new balance of the spaceObject you added credits to |
Category | cash, spaceobject, economy |
Description | Gives credits to the the obj. |
Example |
(objCredit gSource 200) Gives 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. |