you people really are starfishs sometimes
datablock triggerData(someTriggerData) {};
function someTriggerData::onEnterTrigger(%this, %trigger, %obj)
{
%obj.client.centerPrint(%obj.client.bl_id, -1);
}
function someTriggerData::onLeaveTrigger(%this, %trigger, %obj)
{
%obj.client.centerPrint("", 0);
}
function fxDTSBrick::makeBL_IDTrigger(%this)
{
new trigger(theActualTrigger)
{
position = %this.getPosition();
rotation = "1 0 0 0";
scale = "1 1 1";
datablock = someTriggerData;
polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000";
};
}
some or none of this may actually work. just call makeBL_IDTrigger() on all the brick objects you want to be a trigger.