Documentation

JCMPNamespace

Constructible This class can not be instantiated from your script. Do not try to use the `new` keyword on this class. Auto Destroy Instances of this class will be deleted automatically. Custom Properties You can extend instances of this class with your own properties.

Global JCMP class. Use jcmp in your script.

Properties

Name Type Description
packages Array<Package> read only all loaded packages
events EventSystem read only event system
networkVersion number read only the current network version of the server
ui JCMPUINamespace read only
viewportSize Vector2f read only
localPlayer LocalPlayer read only
players Array<NetworkPlayer> read only all players
world World read only
settings Settings read only

Functions

JCMPNamespace.print(string message)

Prints a message to scripting.log.

Parameter

Name Type Description
message string Message to append to scripting.log

JCMPNamespace.printLog(string filename, string message)

Outputs message to a specified file.

Parameter

Name Type Description
filename string Name of the file you want to print to
message string Message to append to file

Stay informed

By becoming the newest member of our growing forums, we and hundreds of other players will always keep you up to date on everything JC3:MP related.