View Single Post
Old 10-08-2012, 02:07 PM   #245
Canderis
Mercenary
 
Canderis's Avatar
 
Join Date: Jun 2008
Location: Unknown
Posts: 2,512
Current Game: Skyrim
Veteran Modder Helpful! 
I am still getting the teleportation issue. I got the dialog to not be skippable, but my npc won't move still.
I have 2 codes from 2 different dialog nodes.

Code:
void main()
{

  object oDoor = GetObjectByTag("m55aa_elv01");
  SetLocked(oDoor,FALSE);
  AssignCommand(oDoor, ActionOpenDoor(oDoor));

  object oNPC=GetObjectByTag("n_shol");    

  float x=101.39;                          
  float y=148.00;                        
  float z=36.32;                        

  int bRun=FALSE;                                                   

  vector vExit=Vector(x,y,z);
  location lExit=Location(vExit,0.0f);
  ActionDoCommand(SetCommandable(TRUE,oNPC));
  DelayCommand(3.0, AssignCommand (oNPC,ActionForceMoveToLocation(lExit,bRun)));

}
Code:
void main() 
{


 object oNPC = GetObjectByTag("nshol");
 
 DelayCommand(3.0, AssignCommand(oNPC, ActionForceMoveToObject(GetFirstPC(), 0, 1.0, 30.0)));



}




Canderis is offline   you may: quote & reply,