Hi all....
Well im trying to make a script to make the first character who uses a placeable to jump to a waypoint in other area...
The script tiggers because the visual effects works, but theres no transition, i have my waypoint in the other area with the right tab...
And as you can see in the code i tried many ways to do it "jump to location" "actionjumptolocation" etc. But nothing works :/ can you help me? it may be easy but im stuck. Im new at scripting in nwn2 but i have lots of experience in nwn1.
void main()
{
object p1 = GetLastUsedBy();
location l1 = GetLocation(GetObjectByTagAndType("empezar_1",OBJECT_TYPE_WAYPOINT,1));
object oW = GetObjectByTagAndType("empezar_1",OBJECT_TYPE_WAYPOINT,1);
if (GetLocalInt(OBJECT_SELF,"Usado")!=1)
{
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_HIT_AURORA_CHAIN), p1);
AssignCommand(p1, ActionJumpToLocation(l1));
AssignCommand(p1, JumpToLocation(l1));
SetLocalInt(p1, "Jugador", 1);
SetLocalInt(OBJECT_SELF, "Usado", 1);
}
}





Retour en haut






