36 lines
898 B
Plaintext
36 lines
898 B
Plaintext
void main()
|
|
{
|
|
object oPc = GetLastUsedBy();
|
|
object oWay;
|
|
location lWay;
|
|
|
|
if(GetTag(GetArea(OBJECT_SELF)) == "haq_smca1")
|
|
{
|
|
oWay = GetWaypointByTag("hal_wptwt1");
|
|
lWay = GetLocation(oWay);
|
|
|
|
AssignCommand(oPc, ActionJumpToLocation(lWay));
|
|
}
|
|
else if(GetTag(GetArea(OBJECT_SELF)) == "haq_smca2")
|
|
{
|
|
oWay = GetWaypointByTag("hal_wptwt2");
|
|
lWay = GetLocation(oWay);
|
|
|
|
AssignCommand(oPc, ActionJumpToLocation(lWay));
|
|
}
|
|
else if(GetTag(GetArea(OBJECT_SELF)) == "haq_smca3")
|
|
{
|
|
oWay = GetWaypointByTag("hal_wptwt3");
|
|
lWay = GetLocation(oWay);
|
|
|
|
AssignCommand(oPc, ActionJumpToLocation(lWay));
|
|
}
|
|
else if(GetTag(GetArea(OBJECT_SELF)) == "haq_smca4")
|
|
{
|
|
oWay = GetWaypointByTag("hal_wptwt4");
|
|
lWay = GetLocation(oWay);
|
|
|
|
AssignCommand(oPc, ActionJumpToLocation(lWay));
|
|
}
|
|
}
|