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 帖子 / 0 全新
Maycon Oliveira的头像

What is your development enviroment?

Ahmed BH的头像

Your IDE please ?