How to set object inactive with python in upbge 0.3+?
Hi. To suspend logic, you can set the current logic state for an object using bge.types.KX_GameObject.state. Otherwise, if you mean how to “hide” an object so you can spawn it, there is bpy.types.Object.hide_viewport.
Hi, yes, i want to hide objects to spawn later. But hide_viewport don’t seem to work.
Test blend:
test-spawn.blend (871.0 KB)