Are you sure the areas are in the right locations? Make sure AreaEffect_1 is by Door_1 and so on, as that's how the callbacks are set up. Also make sure they're close enough for the crowbar to actually hit them.
PS: I noticed the GiveItem line gives you the crowbar with the internal name of "crowbar" but the callbacks are set to use "Crowbar_1" which makes me think that this will only work once unless you match them up.
(09-22-2014, 07:25 AM)Mudbill Wrote: Let's take another look then.
Are you sure the areas are in the right locations? Make sure AreaEffect_1 is by Door_1 and so on, as that's how the callbacks are set up. Also make sure they're close enough for the crowbar to actually hit them.
PS: I noticed the GiveItem line gives you the crowbar with the internal name of "crowbar" but the callbacks are set to use "Crowbar_1" which makes me think that this will only work once unless you match them up.
I'm pretty sure the areas are matched up. I've gone over them several times making sure they were in just the right position.
__________________________________________________________
EDIT:
Turns out I went in and changed "AreaBreak" in the AddEntityCollideCallback function. Putting back the _"+i that had been taken out, the first three doors worked, however it was without the door break sound or particle effect and you could still hear the crowbar bending as the door swung open.
The fourth door did not work; the crowbar again moved only back and forth, and I ended up with three crowbars in the inventory.
And in regards to the crowbar, yes, I thought something like like too, but I wasn't sure how to go about fixing that.
You cannot have the two "" for it to work. It must be:
RemoveItem(asItem);
Ok, so now the problem is just that the crowbar doesn't work on the 4th door?
Please check that ALL names are correct.
Also, try adding AddDebugMessage("Test", false); to the UseCrowbarOnDoor function, and enable debug messages, just to see if the thing is actually calling.
I suggest renaming your crowbar item to just "crowbar" like you have it within GiveItem, and then also rename "Crowbar_1" in the callback to just "crowbar" in order to keep it the same.
This is because the crowbar you pick up (which is named Crowbar_1) will be possible to use to on any of the doors, but after using it, you're given a new crowbar item which is NOT named Crowbar_1, therefore it won't work on the doors. Make those names the same and it should, unless there's something else preventing it.