I used a stuff method and forgeted up the eventing all together. I'd have used
fxDtsBrick::OnPlayerTouch but I gave up on the Crumbling Stage project so I never got around to doing it.
Tested it. It did not work until I had added an event to the brick. It also worked when I did %brick.enableTouch = true;
Let me just rip this from my Crumbling Stage script;
function fxDTSBrick::onLoadPlant(%this)
{
parent::onLoadPlant(%this);
%this.enableTouch = true;
%this.enableFakeTouch = true;
%enabled = 1;
%delay = 1;
%inputEvent = "OnPlayerTouch";
%target = "client";
%outputEvent = "PlaySound";
%par1 = Beep_Popup_Sound.getID();
%this.addEvent(%enabled,%delay,%inputEvent,%target,%outputEvent,%par1);
}
If I also recall correctly, this ruined usage of other onPlayerTouch events as you edit the fxDTSBrick::onPlayerTouch function, unless you return the parent, I don't know. I haven't coded in weeks.