I am having trouble getting PC/NPC to reliably jump to object/location - sometimes nothing happens. There's a couple places that if it doesn't work it can break the whole module. So, I must be doing something wrong. Let me share a few examples and maybe someone can point out my error.
This one is on a placeable that I use to jump me to the next segment within the same area. Sometimes I have to use the placeable several times before it works, but the VFX fires every time:
object oPC = GetLastUsedBy();
string s = GetLocalString(OBJECT_SELF,"Next");
if( GetLocalInt(Getdbobj(oPC),"BWSPIRIT"+s) == TRUE )
This snippet is from a trigger that jumps you to a waypoint within the area to view a cutscene:
location lScene = GetLocation(GetWaypointByTag("VIEWING_WP"));
This one is at the end of a conversation that should send you to another area:
I've tried delaying the jump 0.1seconds after ClearAllActions(). I've tried no ClearAllActions() at all. I've used JumptoObject() and ActionJumpToObject/Location() as well.
I find ClearAllActions() sorta has to be in there or else it rarely works at all.