Trackmania ManiaScript Reference 2024.9.17.1117
A ManiaScript Reference of the new Trackmania.
|
API for plugins to get playground info. More...
#include <doc.h>
Public Member Functions | |
Void | QuitServer (Boolean Silent) |
Void | QuitServerAndSetResult (Boolean Silent, Text Type, Array< Text > Data) |
Void | JoinTeam1 () |
Void | JoinTeam2 () |
Void | RequestSpectatorClient (Boolean Spectator) |
Void | SetSpectateTarget (Text Player) |
Void | ShowProfile (Text Player) |
Boolean | SaveReplay (Text FileName) |
Boolean | SavePrevReplay (Text FileName) |
Boolean | SaveMap (Text FileName) |
Void | MapList_Request () |
CPlaygroundClient::ESpectatorCameraType | GetSpectatorCameraType () |
CPlaygroundClient::ESpectatorTargetType | GetSpectatorTargetType () |
Void | SetWantedSpectatorCameraType (CPlaygroundClient::ESpectatorCameraType CameraType) |
Void | RequestRestartMap () |
Void | RequestNextMap () |
Void | RequestGotoMap (Text MapUid) |
Void | RequestSetNextMap (Text MapUid) |
Void | RequestAutoTeamBalance () |
Void | RequestChangeModeScriptSettings (Text SettingsXml) |
Void | Vote_Cast (Boolean Answer) |
Public Attributes | |
CMap *const | Map |
Integer const | GameTime |
CUser *const | LocalUser |
CUIConfig *const | UI |
CServerInfo *const | ServerInfo |
Ident const | SettingsPlayerModelId |
Boolean const | HasPodium |
Boolean const | IsSpectator |
Boolean const | IsSpectatorClient |
Boolean const | UseClans |
Boolean const | UseForcedClans |
Boolean const | IsLoadingScreen |
Boolean const | IsServerOrSolo |
Boolean const | IsInGameMenuDisplayed |
Array< CTeam *const > | Teams |
Boolean const | MapList_IsInProgress |
Array< Text > | MapList_Names |
Array< Text > | MapList_MapUids |
Boolean const | Request_IsInProgress |
Boolean const | Request_Success |
Text const | Vote_Question |
Boolean const | Vote_CanVote |
Public Attributes inherited from CNod | |
Ident const | Id |
API for plugins to get playground info.
Supported declare modes :
Change some settings from the mode with new values. No need to include unchanged settings. ex: '<script_settings><setting name="S_TimeLimit" type="integer" value="300"/><script_settings/>' nb: you can use TriggerPageAction('maniaplanet:editsettings'); to use the legacy UI.
Request change of IsSpectatorClient (not immediate, and it may be refused). Caveat: will not set Request_Success
Save the current map to a file (if the server IsMapDownloadAllowed). Filename is optional.
Save the current replay to a file. Filename is optional.
Boolean const CPlaygroundClient::IsSpectator |
Is in spectator mode - may be only for a short time between rounds.
Boolean const CPlaygroundClient::IsSpectatorClient |
Client actually desires to spectate instead of playing.
CMap* const CPlaygroundClient::Map |
Null when no map loaded.