1
Modification Help / Re: Saving Bricks
« on: October 26, 2007, 03:19:10 AM »
Yes but that defeats the purpose of it loading/saving with blb files.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
datablock itemData(decollideItem)
{
category = "";
className = "";
shapeFile = "base/data/shapes/empty.dts";
mass = 1;
density = 1;
elasticity = 1;
friction = 1;
emap = true;
uiName = "Decollide";
iconName = "";
doColorShift = true;
colorShiftColor = "1 1 1 1";
canDrop = true;
};
function decollideItem::onPickup(%this)
{
return;
}
function decollideItem::onAdd(%this, %object, %continue)
{
if(%continue !$= "true")
{
%this.schedule(100, "onAdd", %this, %object, true);
return;
}
for(%a = 0; %a < mainBrickGroup.getCount(); %a++)
{
for(%b = 0; %b < mainBrickGroup.getObject(%a).getCount(); %b++)
{
if(mainBrickGroup.getObject(%a).getObject(%b).item == %object)
{
mainBrickGroup.getObject(%a).getObject(%b).setColliding(true);
}
}
}
}
function decollideItem::onRemove(%this, %object)
{
if(%continue !$= "true")
{
%this.schedule(100, "onRemove", %this, %object, true);
return;
}
for(%a = 0; %a < mainBrickGroup.getCount(); %a++)
{
for(%b = 0; %b < mainBrickGroup.getObject(%a).getCount(); %b++)
{
if(mainBrickGroup.getObject(%a).getObject(%b).item == %object)
{
mainBrickGroup.getObject(%a).getObject(%b).setColliding(false);
}
}
}
}
datablock TriggerData(GameArena)
{
tickPeriodMS = 100;
};
function GameArena::onEnterTrigger(%this,%trigger,%obj)
{
//lol nothing to do here
}
function GameArena::onLeaveTrigger(%this,%trigger,%obj)
{
%obj.player.client.kill();
bottomprint(%obj.client,"\c2Do not leave the game arena",5);
}
It seems as though my computer moniter has a mind of it's own, its not blurry anymore... I don't think that will last much longer but it helps.