Blockland Forums > Help
Cant place 2x4 Brick
<< < (2/2)
wound:
badspot has already explained the solution.
Glass¹:

--- Quote from: wound on August 14, 2012, 02:59:04 PM ---badspot has already explained the solution.

--- End quote ---
What was it exactly.
wound:

--- Quote from: wound on August 14, 2012, 02:59:04 PM ---badspot has already explained the solution.

--- End quote ---

when enabling add-ons before starting a server, disable gamemode_tutorial and then you'll be aloud to build 2x4.
Pacnet2012²:

--- Quote from: Glass¹ on August 14, 2012, 03:09:35 PM ---What was it exactly.

--- End quote ---


--- Code: ---function brick2x4Data::onTrustCheckFinished(%data, %brick)
   {
      %client = %brick.client;
      if(!isObject(%client))
         %client = %brick.getGroup().client;
      if(!isObject(%client))
         %client = clientGroup.getObject(0);
      if(!isObject(%client))
         return;

      %player = %client.player;
      if(!isObject(%player))
         return;

      //hack: don't do this while loading
      if(isObject($Server_LoadFileObj))
         return;

      //check if we've planted onto one of the build goals
      if(!%player.goalCompleted["Build1"])
      {
         %count = %brick.getNumDownBricks();
         for(%i = 0; %i < %count; %i++)
         {
            %downBrick = %brick.getDownBrick(%i);
            //echo("downbrick " @ %downbrick);
            if(%downBrick.getName() $= "_build1Platform")
            { 
               if(isObject(%client))
               {
                  %player.completeTutorialGoal("Build1");
                  openTutorialDoor("build1Door");
                  return;
               }     
            }
         }
         %brick.killBrick();
      }

--- End code ---
Pacnet2012²:
The code is from GameMode_Tutorial.
Navigation
Message Index
Previous page

Go to full version