Jump to content

ModifyPlayerPoints

From CMM Wiki
Revision as of 12:27, 24 June 2026 by Ozdeadmeat (talk | contribs) (ModifyPlayerPoints – 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: ModifyPlayerPoints
Function Description:
File Location: cmm.pointsFunctions.lua
Syntax: CMM.ModifyPlayerPoints( table argTable )
Return Value: boolean,number,string or nil
Parameters: Name Description
argTableArgTable = {Unit, UCID, 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:

}