Jump to content

AwardPlayerPoints

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: AwardPlayerPoints
Function Description:
File Location: cmm.pointsFunctions.lua
Syntax: CMM.AwardPlayerPoints( table argTable )
Return Value: boolean,number,string or nil
Parameters: Name Description
argTableArgTable = {Unit_GIFTER, Unit_GIFTEE, Points, Note
Example: CMM.ModifyPlayerPoints({[1] = Unit.getByName("PlayerUnit"), [2] = "PlayerUCID", [3] = -1000, [4] = "Spent on a new plane!"})
Example Description: Saves the ServerPoints out to <CMM.PDIR>\POINTS\PlayerServerPoints.json
Related Functions:
Notes:

}