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 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

What is your development enviroment?

Your IDE please ?

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui