Well I am working on a new event called SetPrint, and it sets a print on a print brick to the letter typed in. My code doesn't syntax, but it doesn't work either, it says this in the console:
fxDTSBrick::setPrint - wrong number of arguments.
usage: (int printID)
In the console, I type: (objectId).setPrint(random number) and it works. Now I don't know what to do to make it work in the script, I've tried alot of things, so I'll post my code here. Also, I would like to know how to check if the brick is a print brick, In the code you'll see I tried something, but it doesn't work either. Here's the code:
function fxdtsbrick::Setprint(%obj, %print)
{
if(%Obj.getdatablock()!=BrickPrintData.getid())
return;
%obj.setprint($printNameTable["Letters_Default/"@%print]);
}
registerOutputEvent(fxdtsbrick,setPrint,"string 11 30");
Please help!