Editors Note: 1.06 added the [Currency] arg.
Functions Documentation
View Function Edit Function
Name objGetBalance
Syntax (objGetBalance spaceObject [currency]) -> number
Argument List spaceObject: The space object that you want to get the amount of credits from.
[Currency]: the UNID of the currency
Returns number: The amount of credits that the space object has.
Category cash, spaceobject, economy
Description Returns the amount of credits the space object has.
Example
(objGetBalance gsource)


Returns the amount of credits that the caller has.
Comment Useful function but be aware that the players credits are not tied to the player's ship.