UserFunction; Player_BequeathRUs - HWRM/KarosGraveyard Wiki

Description

Transfers all of Player 1's RUs to Player 2.

Player_BequeathRUs(iPlayer1, iPlayer2)
    local Player1RU = Player_GetRU(iPlayer1)
    local Player2RU = Player_GetRU(iPlayer2)
    Player_SetRU(iPlayer2, Player1RU + Player2RU)
    Player_SetRU(iPlayer1, 0)
end

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial