AddCredits (Harvest)

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '{{HarvestMethod | harvest.addCredits(amount) | Modifies the player's credit count by 'amount'. The value can be negative, which means that money will be removed from the player's...')
Line 11: Line 11:
=== Example ===
=== Example ===
<pre>
<pre>
-
  harvest.addCredits(1)
+
harvest.addCredits(1)
</pre>
</pre>

Revision as of 22:00, 1 December 2009

harvest.addCredits(amount)

Modifies the player's credit count by 'amount'. The value can be negative, which means that money will be removed from the player's count.

Parameter Expected Type Description
amount An integer The amount of credits to add (or subtract).
Returns

Returns nothing.

Harvest Library

Example

harvest.addCredits(1)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox