Aller au contenu

Photo

Example of CreatePool script?


4 réponses à ce sujet

#1
Sonmeister

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

#2
TimelordDC

TimelordDC
  • Members
  • 923 messages
There is no separate script. AFAIK, it should be used under the EVENT_TYPE_AREALOAD_PRELOADEXIT event. Check here - http://dalexicon.net...tePool_function

#3
Sonmeister

Sonmeister
  • Members
  • 167 messages
I want to have some creatures appear (bad guys) if a conversation goes a certain way (badly). What would you suggest as the best way to accomplish this?

#4
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.

#5
Sonmeister

Sonmeister
  • Members
  • 167 messages
As usual, thanks DavidSims!