I was working on a addon that does this ,but it doesn’t work in all cases. I haven’t figured out how to solve the issues. Kinda threw in the towel, since I’ve been playing around with other game engines.
OK, I played around with it a little more for you. If you want to see the issues with it, hook up one sensor and one actuator to two controllers. It will make duplicates of the sensors and actuators. Here’s the addon improved_logic_state_to_states1.zip (6.32 KB)
if you wanna play around with it. It only works with BGE and not UPBGE, since there has been updates to the logic.
To: This is the state that you want to copy the logic to.
From: This is the state that you want to copy the logic from.
Active / All: Copies all the logic in the state or just the “active” logic in the state.
Copy to State: Copies the logic to the “To” state.
I just adding the “Active / All” today. Before it would copy all logic within the state ,but this lets you “choose” which logic within the state that you want copy, by making the logic you don’t want inactive(unchecked).