I created Dynamic Prototype Factory and when I change it’s prototype from script, I get error:
Trying to set ‘/game/object/path.go’ as prototype to ‘some factory’. Only .goc resources are allowed
Here’s the script:
factory.unload("#some_factory")
factory.set_prototype("#some_factory",o.game_obj)
current_item = factory.create("#some_factory")