ManiaScript CheatSheet

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
krial057
Posts: 57
Joined: 13 Nov 2010, 20:15

ManiaScript CheatSheet

Post by krial057 »

Here is my cheatsheet for maniascript, it is long not complete and it is ugly written, but better than nothing ;)
If you find anything that is missing (like Variable Types: Int3, Vec3, Vec2, Integer, Boolean, Void, ...), it would be nice if you post them :P
/**
*Functions
**
GetStartLineBlock
GetBlockGroundHeight
RemoveTerrainBlocks
GetBlock
PlaceMacroblock
CanPlaceMacroblock
PlaceTerrainBlocks
CanPlaceTerrainBlocks
PlaceRoadBlocks
CanPlaceRoadBlocks
CanPlaceBlock
RemoveAllBlocksAndTerrain
RemoveAllBlocks
UpdateBlocksDisplay
CameraHAngle
CameraVAngle
CursorMacroblockModel
CursorTerrainBlockModel
CursorBlockModel
CursorDir
CursorCoord
SetViewMode_Underground
IsViewMode_Underground
IsPlaceMode_Test
IsPlaceMode_CopyPaste
IsPlaceMode_Skin
IsPlaceMode_Macroblock
IsPlaceMode_Block
IsPlaceMode_Terraform
SetDisplayMode_BlockStock
DialogDoMessage
SaveChallenge
EnterEditMode_FreeLook
EnterEditMode_Pick
EnterEditMode_Erase
EnterEditMode_Place
SwitchViewMode_Underground
EnterPlaceMode_Test
EnterPlaceMode_CopyPaste
EnterPlaceMode_Skin
EnterPlaceMode_Macroblock
EnterPlaceMode_Block
EnterPlaceMode_Terraform
AutoSave
Help
ComputeShadows

/**
*Namespaces:
**
///
MAPUNITS
GetNextDir
GetPreviousDir
GetOpposedDir
AddDirs
GetNeighbourCoord
GetRotatedOffset
GetRotatedOffsetPositive
SubDirs

///
CARDINALDIRECTIONS
::CardinalDirections::North
::CardinalDirections::East
::CardinalDirections::West
::CardinalDirections::South

///
MATH
Sin
Cos
Tan
Exp
RandReal
RandInteger
ToReal
RealToInteger
TextToInteger

/**
*Arrays:
**/
[]
//functions:
add, count, ...
//Int3,Vec3:
<elem1,elem2,elem3,...>

/**
*FOR LOOP:
**/
for(counter,from,to)
//example:
for(I,1,RandomDirInt)
RandomDir = MapUnits::GetNextDir(RandomDir);
//
/**
*Class Referencing???
**/
<=>
regards,
krial057
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest