Jump to content

AwardPlayerPoints

From CMM Wiki
Revision as of 12:27, 24 June 2026 by Ozdeadmeat (talk | contribs) (AwardPlayerPoints – created via PowerShell script (2026-06-24T22:27:08Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:

}