So I want to make a mechanic where the player can pick up a Battery.
But I get this error when I want to compile the Battery.
If you can help that would be great or if you can show me a better way to do this.
Thank you
This is the code from the Battery
This is the code from the Player
1 Like
It’s because you’ve manually made a custom event called ‘battery response’, but you also have an interface call with the same name.
You need to get rid of the custom event, and ‘implement’ the interface call.
I think this
is supposed to be an interface call, but it’s possibly just a call within the player, not sure. That’s why the pin is yellow. If it was an interface call, it would have the little envelope icon.
1 Like
Thank you, it sort of works now. I now have a problem that for some reason when there are 2 “batteries” in the scene it destroys the other one. And when there is only one in the scene it doesnt do anything.
EDIT: nevermind I am an idiot. I had the branch from the battery check on false. so yeah…
Thanks
1 Like