mordentral
(mordentral)
June 24, 2020, 3:55pm
4139
Qianfulong:
is rly strange. I tried and found, that i can add the gun object “as is” to the button array even without adding the interface “Electrical Object” to the class settings of GunBase BP, nor the event “EventCurrentStateChange”, nor the function “CurrentStateChange” to it’s event graph…
So let’s try with an empty virgin BP:
Place BP_Test in level and try to add it to the Button array –> Fail.
Would you try to reproduce that?
Edit: In the meantime i found that most of the actors that are lready in the demo scene, e.g. the Barrel, the Door, the gripable cubes, … can be added to the button’s electric objects array “as is”. No need to add the interface or function whatsoever. However creating my own actor, putting it into the level and trying to add tht to the array wont work. What makes those actors already placed in the demo scene different from mine?
Well yeah…its just a tarray of object references that it tries to call the interface on. If they don’t implement the interface than it just won’t do anything.
Try compiling and saving your edited level, there is no difference, it is just the editors actor selection ui.