I'm trying to spawn in a set of bricks usin (new fxDTSbrick()), but only half of them show up for some reason
so I decided to do echo(%brick.plant()); when planting the brick
and I got two numbers
sometimes it echoed 1, sometimes 2
what do they mean?
I need help because most of the bricks that do spawn in are glitchy anyway
// i have an array of vector3s to be the positions to spawn the bricks at
// $spc is the count of spawn dirt
for(%i = 0; %i < $spc; %i++)
{
%pos = SpawnData.SpawnPos[%i];
if(getWord(%pos, 0) !$= "")
{
// i have a set of script objects that act as the base for different blocks
// $Z_Offset is just how high I want the bricks, it's set to 70000
%dirt = getDirtType("0 0" SPC $Z_Offset); // automatically get the first layer of dirt
%dirt.place(%pos SPC $Z_Offset);
}else{
warn("Spawn Position doesn't exist... ignoring...");
}
}
function KM_Layer::place(%this, %pos)
{
%brick = new fxDTSbrick()
{
datablock = "brick4cube1data";
position = %pos;
rotation = "0 0 0 0";
scale = "1 1 1";
angleID = "0";
colorfxid = 0;
shapefxID = "0";
isPlanted = 1;
scale = "1 1 1";
stackBL_ID = getNumKeyID();
name = %this.name;
health = %this.health;
type = %this;
colorID = %this.color;
printID = %this.print;
};
OrePosData.orePos[%pos] = 1;
echo("Layer Position:" SPC %pos);
echo(%brick.plant());
BrickGroup_1337.add(%brick);
}
It's supposed to be an 8x8 grid of dirt, but instead only a few are planted
The green blocks aren't being loaded by my script, those are a blockland save
me flying in the blocks