User Tools

Site Tools


modding:function:objcharge

Discuss this page on this pages TalkPage

objCharge

See objCharge at Xelerus

Syntax (objCharge obj amount) → remaining balance
Arguments obj: The spaceObject that you want to take credits away from.
amount: The amount of credits you want to remove.
Returns integer: The remaining balance of the spaceObject you removed creadits from
Category cash, spaceobject
Description Takes credits away from the the spaceObject.

Example

(objCharge gSource 200)

Removes 200 credits from whatever gSource is bound too. Return to Functions list

modding/function/objcharge.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1