How do you create new objects?

How do you create new objects?

stealth977's picture

Lets say the AI system found a suitable target and wants to open fire on it. So it needs to create one or more bullet objects, since the AI's update is a task running on any thread, how do you do that? You cant directly call UScene->CreateObject() or any UObject functions from a System's task... There seems to be a ChangeOccured() function for UScene, but its not used, so i dont know how to use it. Even if i used it, it does pass ObjectType as null to the systems... Any information about creating / destorying universal objects during a system's task would be very much appreciated...

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Maycon Oliveira's picture

What is your development enviroment?

Ahmed BH's picture

Your IDE please ?

Login to leave a comment.