What is %data supposed to be in this function?
function FxDTSBrick::createTrigger(%brick, %data)
{
//credits to Space Guy for showing how to create triggers
%t = new Trigger()
{
datablock = %data;
polyhedron = "0 0 0 1 0 0 0 -1 0 0 0 1";
};
missionCleanup.add(%t);
%boxMax = getWords(%brick.getWorldBox(), 3, 5);
%boxMin = getWords(%brick.getWorldBox(), 0, 2);
%boxDiff = vectorSub(%boxMax, %boxMin);
%boxDiff = vectorAdd(%boxDiff, "0 0 0.2");
%t.setScale(%boxDiff);
%posA = %brick.getWorldBoxCenter();
%posB = %t.getWorldBoxCenter();
%posDiff = vectorSub(%posA, %posB);
%posDiff = vectorAdd(%posDiff, "0 0 0.1");
%t.setTransform(%posDiff);
%brick.trigger = %t;
%t.brick = %brick;
return %t;
}