View Full Version : script help


darkaton
Tue, 19th Oct '04, 4:00pm
i have a script and i thought i did everthing thing right here it is:

void main()
{
object oPC = GetEnteringObject();
object oTarget = oPC;
object oToJumpTo;
switch(d8())
{

case 0: oToJumpTo = GetWaypointByTag("start1");
break;
case 1: oToJumpTo = GetWaypointByTag("start2");
break;
case 2: oToJumpTo = GetWaypointByTag("start3");
break;
case 3: oToJumpTo = GetWaypointByTag("start4");
break;
case 4: oToJumpTo = GetWaypointByTag("start5");
break;
case 5: oToJumpTo = GetWaypointByTag("start6");
break;
case 6: oToJumpTo = GetWaypointByTag("start7");
break;
case 7: oToJumpTo = GetWaypointByTag("start8");
break;

}
ActionJumpToObject(oToJumpTo);
} what im trying to do is have a player start in one of these 8 locations shown by waypoints. I think i need to traget the player but im new to scripting so i do not know how if someone does please tell me.