you don't need to even use triggers, just have the bank datablock and set code to happen when you touch it by packaging onPlayerTouch.
package packageName{ function fxDTSBrick::onPlayerTouch(%this,%obj,%player) { // do stuff return parent::onPlayerTouch(%this,%obj,%player); }};activatePackage(packageName);
Code: [Select]package packageName{ function fxDTSBrick::onPlayerTouch(%this,%obj,%player) { // do stuff return parent::onPlayerTouch(%this,%obj,%player); }};activatePackage(packageName);
You know %this is the brick, right?
hurr flippin' durr
function fxDTSBrick::onPlayerTouch(%obj, %player) { %data = %obj.getDatablock(); %data.onPlayerTouch(%obj, %player);}
Then what's with the 3rd argument returning things
Maybe the client?