Aller au contenu

Photo

Example of CreatePool script?


1 réponse à ce sujet

#1
Sonmeister

Sonmeister
  • Members
  • 167 messages
Can someone show me an example of a CreatePool script?

#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
The best way to accomplish that is to place the creatures in the area. Set them as inactive, and give them all one team. Then, in an action attached to the end dialog node, use UT_TeamAppears(nTeamID) with whatever team you assigned.



CreateObject/CreatePool shouldn't used very often. If you need to continuously replenish the number of creatures in a fight, with waves of new enemies coming, it may be the better approach, but for most things I find activating inactive creatures is much simpler, and better for performance.