You don't have to choose a location in any given way. You could even find the coordinates using the mouse (they show in the bottom right of the toolset) and manually enter them into a vector, then build a location from it. You have to get the correct area somehow (again, many ways, the best depends on whether you're in the same area or not, among other things), but the rest is as follows:
//get area somehow - this assumes the caller is in the same area
object oArea = GetArea(OBJECT_SELF);
//enter your coordinates from your toolset read
float fX = 10.0;//x coord
float fY = 15.5//y coord
float fZ = 0.0//z coord
vector vVec = Vector(fX, fY, fZ);
float fFacing = 0.0;//I'm assuming you don't care much which way he spawns in facing - this can get tricking as scripted facing is 90 degrees off from toolset facing
//and voila, we have the location, no waypoint needed
location lLoc = Location(oArea, vVec, fFacing);
//of course, you can always just do it with a waypoint:
object oWay = GetObjectByTag("TAGOFWAYPOINT");//I'm not a fan of this function, but it serves for this example
location lLoc2 = GetLocation(oWay);
//From there you just spawn in the creatures, using CreateObject
object oSpawn1 = CreateObject(OBJECT_TYPE_CREATURE, "resref_of_beast", lLoc2);
Funky
Modifié par FunkySwerve, 10 novembre 2010 - 04:09 .