I'm using "Create object (by name)" and need to be able to determine the name of the object that was just created.
How do you fetch the name of an object?
ObjectTypeName
construct.net/en/make-games/manuals/construct-3/plugin-reference/common-features/common-expressions
ObjectTypeName https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/common-features/common-expressions
https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/common-features/common-expressions
I need the name of the object though, not the object type.
Develop games in your browser. Powerful, performant & highly capable.
I assume the name in this case is an instance variable.
If so, you can use the Pick last created system action.
From the manual.
https://www.construct.net/en/make-games/manuals/construct-3/system-reference/system-conditions
I assume the name in this case is an instance variable. If so, you can use the Pick last created system action. From the manual. Pick last created Pick the most recently created instance of an object type or family. This is useful with the Create object (by name) system action. For example if you know the created object must belong to a family, then you can use Pick last created to pick the created instance from the family. https://www.construct.net/en/make-games/manuals/construct-3/system-reference/system-conditions
That worked well as a substitute. Thank you.