here is what i made for the unused of a portal, after adding AssignCommand(oPC, ActionJumpToLocation(loc_gs,TRUE)); the script doesnt compile. can anyone tell me what i'm doing wrong please?
void main()
{
object oPC = GetLastUsedBy();
location loc_gs = GetLocalLocation(OBJECT_SELF,"RECALL_LOC1");
//object oLastspeak = GetLastSpeaker();
effect eTeleport1 = EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION);
effect eTeleport2 = EffectVisualEffect(VFX_FNF_SCREEN_SHAKE);
if (GetLocalInt(oPC,"SPAWN_1") == 0)
{
FloatingTextStringOnCreature("You have no gravestone", oPC, FALSE);
return;
}
if (GetLocalInt(oPC,"SPAWN_1") == 1)
{
ApplyEffectToObject(DURATION_TYPE_INSTANT, eTeleport1, oPC);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eTeleport2, oPC);
//DelayCommand(1.5, AssignCommand(oPC, JumpToObject(GetObjectByTag("Gravestone_1"))));
AssignCommand(oPC, ActionJumpToLocation(loc_gs,TRUE));
SetLocalInt(oPC, "SPAWN_1", 0);
return;
}
}