This is for vanilla (no add-on) minigames. For a Slayer Minigame's added values/methods, check the Slayer source code.
Don't forget that a gamemode's default minigame is $DefaultMiniGame.
==>findclientbyname("axo").minigame.dump();
Member Fields:
class = "MiniGameSO"
Tagged Fields:
BotDamage = "1" //damage enabled for players/AIPlayers?
BotRespawnTime = "5000" //AIPlayer respawn time in MS
BrickDamage = "1"
BrickRespawnTime = "30000" //fakekillbrick clear time in MS
colorIdx = "0" //color of minigame's name (based on minigame menu colors?)
EnableBuilding = "1"
EnablePainting = "1"
EnableWand = "0"
FallingDamage = "1"
InviteOnly = "0"
lastResetTime = "352851" //not sure what this is based on, but it's probably the last SimTime of when the minigame got reset
member0 = "17986" //1st member client, the 2nd member is member1/member[1] and so on
numMembers = "1"
owner = "17986" //owner client
PlayerDataBlock = "38" //can be a PlayerData's name or ObjectID (NOT uiName)
PlayersUseOwnBricks = "0"
Points_BreakBrick = "0"
Points_Die = "0"
Points_KillBot = "1"
Points_KillPlayer = "1"
Points_KillSelf = "-1"
Points_PlantBrick = "0"
resetSchedule = "0"
RespawnTime = "1000" //Player respawn time in MS
SelfDamage = "1" //can players damage themselves?
StartBall = "0" //ShapeBaseImageData of the sports ball that a player will spawn with, or 0 if there's none
StartEquip0 = "65" //1st ItemData that players in the minigame are equipped with by default
StartEquip1 = "75" //2nd ItemData
StartEquip2 = "383" //3rd ItemData
StartEquip3 = "910" //4th ItemData
StartEquip4 = "862" //5th ItemData
TimeLimit = "0" //time limit
timeLimitSchedule = "0" //ScheduleID for the time limiter. This changes every time a message of how much time remaining is sent.
title = "Axolotl\'s Mini-Game"
UseAllPlayersBricks = "0"
UseSpawnBricks = "1"
VehicleDamage = "1"
VehicleRespawnTime = "5000"
WeaponDamage = "1"
Methods:
addMember() - //add a client to the minigame, this will NOT add AIConnections
addScheduledEvent() -
bottomPrintAll() -
cancelEvents() -
centerPrintAll() -
chatMessageAll() -
chatMsgAll() -
checkLastManStanding() -
clearEvents() -
clearNTObjectName() -
delete() - obj.delete()
dump() - obj.dump()
dumpEvents() -
endGame() - //Ends the minigame
forceEquip() -
getClassName() - obj.getClassName()
getGroup() - obj.getGroup()
getId() - obj.getId()
getLine() -
getName() - obj.getName()
getTaggedField() - obj.getTaggedFieldCount(int idx)
getType() - obj.getType()
isMember() -
MessageAll() -
messageAllExcept() -
onAdd() -
onCameraEnterOrbit() -
onCameraLeaveOrbit() -
pickSpawnPoint() - //picks and returns a random transform based on the minigame's spawn points
processInputEvent() -
removeMember() - //remove a client from the minigame
Report() - //prints the MiniGameSO's members and variables
reset() -
respawnAll() -
save() - obj.save(fileName, <selectedOnly>)
schedule() - object.schedule(time, command, <arg1...argN>);
scheduleReset() -
serializeEvent() -
serializeEventToString() -
setEnableBuilding() -
setEnablePainting() -
SetEventEnabled() -
setName() - obj.setName(newName)
setNTObjectName() -
timeLimitTick() - //changes the time limiter scheduleID, returns the new time limiter scheduleID. if the timelimit is 0, then this resets the minigame.
ToggleEventEnabled() -
updateEnableBuilding() -
updateEnablePainting() -
updatePlayerDatablock() -