How can I use one travel package to move an actor to multiple locations?

Revision as of 06:13, 29 November 2009 by imported>Nuclear Arbitor

You could have a single package pointing to an XMarker (look under Statics -- we use them everywhere). Name the XMarker, move it to wherever you need it (probably by having XMarkers at all the locations), then the package will direct the NPC to wherever the XMarker is currently located.

RESPONSE: -

I've tried this and it doesn't work! When I rename the xmarkers and try to place more than one xmarker in the world...it says ID not unique!!

Response:

I've done this and currently am using it in a mod I'm working on. Yes, create ONE Marker, make it persistent, name it. Then point the AI package to it. Then, look around in cells for other persistent/named stuff (i.e. reference objects). Use THOSE in your code. Those references can be NPCS, furniture, objects, respawning named creatures, whatever... just as long as they are persistent and named uniquely. Then move the marker with moveto. I use it to make an NPC mount up and then go to different places mounted using all the "horsereturn" markers in stables. Sample code -

MyNPCsHorseMarkerRef.moveto BravilHorseReturnMarker, 200,200,0


the numbers at the end are offset numbers x,y,z that determine how far from the BravilHorseReturnMarker. Alternatively if there ARE no unique references in the cell you are wanting to point your travel marker to, then by all means, create a new marker in said cell, click the persistent reference box, give it a unique name, then use the .moveto command to point your travel marker to it. For the guy above me claiming it doesn't work, go back to the tutorials and learn the diference between renaming a base object and creating a unique reference to the base object.

  ---n0rd