Skip to content

NOTIFY_ADD_COIN

Description

Awards the player the given amount of coins.

Parameters

count

The number of coins to give the player.

Return Value

Sets game.coinCount to the new coin count.

Sets game.coinCount to the new coin count.

Sets globals->coinCount to the new coin count.

Syntax

game.callbackParam0 = count
EngineCallback(NOTIFY_ADD_COIN)
CallNativeFunction2(NotifyCallback, NOTIFY_ADD_COIN, int count)
NotifyCallback(NOTIFY_ADD_COIN, int32 count, NULL, NULL);

Example

game.callbackParam0 = 1
EngineCallback(NOTIFY_ADD_COIN)
CallNativeFunction2(NotifyCallback, NOTIFY_ADD_COIN, 1)
NotifyCallback(NOTIFY_ADD_COIN, 1, NULL, NULL);