Category talk:Packages
Revision as of 15:45, 7 April 2006 by imported>Kkuhlmann
Is there a way to dynamically specify the target or location of a package with scripting? Right now I have about 8 identical packages made, all of them pointing to a different location, and the script loads up whichever one it needs. I would rather have the script load up the same package every time, using a reference for a target that I can specify within the script. Is this possible? Sockmonkeh 13:44, 7 April 2006 (EDT)
- --Kkuhlmann 16:45, 7 April 2006 (EDT): You could do this a couple of ways. Depends on the exact situation, which I'm not sure of from your description. You could have a single package pointing to an XMarker (look under Statics -- we use them everywhere). Name the XMarker move it to whereever you need it (probably by having xmarkers at the 8 locations), then the package will directly the NPC to wherever the xmarker is currently located. Another way would be to use 8 packages with conditions on them (based on script variables or whatever you want to distinguish which one applies), then evp the NPC whenever the variable(s) change so he picks up the correct package.