How do you create new objects?

How do you create new objects?

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.

What is your development enviroment?

Your IDE please ?

Leave a Comment

Please sign in to add a comment. Not a member? Join today