-
Inheriting logic
Is there a way to push a chain of logic or a function onto a newly created object during runtime? For example, I want to spawn enemies that inherit certain logic chains every time they are spawned. Is that possible?
I apologize for the two separate posts.
-
Judging by your two threads it sounds like what you want to do would be better accomplished by creating all of your objects by hand, then activating and deactivating them (either by making them invisible, moving them out of the play area, or something similar) as needed. The Trials scripting system does not allow for much code reuse, so most of the time you just need to duplicate any logic that needs to be applied to more than one object, or store the objects in an object array and refer to them using an object retriever.
To my knowledge the only way of dynamically creating objects is with an emitter, which is more for particle system type of effects and not really as a general purpose dynamic object creation mechanism.