Author Topic: How do you make a minigame through script?  (Read 1521 times)

I'm confused, I try looking at gamemodes etc., but I don't understand what the exact code is. Please help, thanks!

A Slayer minigame or not? If not, it's literally just a script object.
Code: [Select]
new ScriptObject()
{
brickDamage = 1;
brickRespawnTime = 10000;
class = miniGameSO;
colorIdx = 0;
EnableBuilding = 1;
EnablePainting = 1;
enableWand = 1;
fallingDamage = 1;
inviteOnly = 0;
numMembers = 0;
owner = 0;
playerDataBlock = PlayerStandardArmor;
PlayersUseOwnBrick = 0;
Points_BreakBrick = 0;
Points_Die = 0;
Points_KillPlayer = 0;
Points_KillSelf = 0;
Points_PlantBrick = 0;
respawnTime = 5000;
selfDamage = 1;
StartEquip0 = 0;
StartEquip1 = 0;
StartEquip2 = 0;
StartEquip3 = 0;
StartEquip4 = 0;
title = "My Minigame";
useAllPlayersBricks= 1;
useSpawnBricks = 1;
VehicleDamage = 0;
vehicleReSpawnTime = 5000;
weaponDamage = 1;
};


Gamemodes automatically create a default minigame, which you can access with $defaultMinigame if my memory's right.

What are you trying to do?