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