http://forum.blockland.us/index.php?topic=102961.0Solved!I'm pretty new to triggers and I'm not sure how I would do this, but I have a onEnterTrigger function that requires %brick.
function zoneTrigger::onEnterTrigger(%this,%trigger,%obj)
{
if(%trigger.Active == 1)
{
if(%obj.getClassName() $= "Player") {
if(%brick.isTeamed_1 && %obj.client.tdmteam == 1)
{
commandToClient(%obj.client,'ShowWBuyHUD');
%obj.CanWeaponBuy = 1; }
if(%brick.isTeamed_2 && %obj.client.tdmteam == 2)
{
commandToClient(%obj.client,'ShowWBuyHUD');
%obj.CanWeaponBuy = 1; }
if(%brick.isAll_1)
{
commandToClient(%obj.client,'ShowWBuyHUD');
%obj.CanWeaponBuy = 1; }
}
}
}
How would I get %brick to actually be the brick that this trigger is located on?