void main()
{
object oPC = GetLastUsedBy();
string sPortal;
location lPortal;
if (GetLocalInt(OBJECT_SELF, "ao_portal") == 0)
{
SetLocalInt(OBJECT_SELF, "ao_portal", Random(3)+1);
}
int nExplore = GetLocalInt(OBJECT_SELF, "ao_portal");
switch (nExplore)
{
case 1: sExplore = "ao_wp_portal001";
case 2: sExplore = "ao_wp_portal002";
case 3: sExplore = "ao_wp_portal003";
}
lPortal = GetLocation(GetObjectByTag(sPortal));
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
AssignCommand(oPC, ActionJumpToLocation(lPOrtal));
}
Whenever I try to test it in singleplayer I always get brought to the waypoint that corresponds with case 3.
Its very late and I'm at my wit's end. Is there something here I'm over-looking?





Retour en haut






