Author Topic: ifBrickColor  (Read 453 times)

Would this work for ifBrickColor?
Code: [Select]
registerOutputEvent(fxDTSBrick, "ifBrickColor", "Datablock brickcolor", 1);

function fxDTSBrick::ifBrickColor(%this, %brick %client) {
if(%brick $= -1) {
%brick = 0;
if(%item $= %client.brick.getcolor(0)) {
%this.veribleTrue(%client);
return;
}
else {
%this.varibleFalse(%client);
return;
}
}
else {
if(%brick.color.getID() $= %client.brick.getcolor(0)) {
%this.varibleTrus(%client);
return;
}
else {
%this.varibleFalse(%client);
return;
}
}
}
I looked at the ifItemInHand and change some stuff

No, you have typos in there. Plus, why even make this? V5 has a built in <var:brick:colorid> variable... And PLEASE don't tell me your still using v4.

Oh its already evented?I saw some one wanting it well ok then.