Author Topic: setPrint  (Read 1869 times)

Code: [Select]
function fxdtsbrick::Print(%obj, %print)
{
if(%Obj.getdatablock()!=BrickPrintData.getid())
return;
%obj.setprint($printNameTable["Letters_Default/"@%print]);
}
registerOutputEvent(fxdtsbrick,setPrint,"string 11 30");
Correct me if I'm wrong, but it seems that you are making a Print function and making a setPrint event.


Now you're calling %obj.setPrint inside the setPrint function

Why are you allowed to type a string 30 characters long if it's only going to be one letter?

It should also match those like !, ?, ., etc. with -bang, -qmark, -period and check whether the print actually exists.

Space Guy, How could I find the print by its file name, not by its Id?

Could you PM me?
« Last Edit: March 28, 2009, 05:52:00 PM by AGlass0fMilk »

I just realised that a print events thing already exists... I have one installed that generates a list of prints when you start the server and then lets you either set a letter print (Typing "A", "B", "?", "!") or choose from the list. ("radar1", "monitor1")