View Single Post
Old 03-17-2012, 02:34 PM   #150
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,152
Current Game: Fallout: New Vegas
Alright, I've managed to get my above script to compile by making it like this:

Code:
void main()
{


     object oPC=GetFirstPC();

     object oNPC=GetObjectByTag("dt_comm");

  int nEvent = GetUserDefinedEventNumber();

int bRun=TRUE;

  if( 
        (nEvent == 1002) &&
        GetGlobalBoolean("DT_CHECK1") == FALSE)
        {

        if(GetDistanceBetween(oNPC, oPC) <= 6.0){

    ActionDoCommand(SetCommandable(TRUE, oNPC));

  AssignCommand (oNPC, ActionMoveToObject(oPC, bRun));

  AssignCommand (oNPC, ActionStartConversation(GetFirstPC()));
  
    } 
  }
}
I'll edit this post to tell if it works in-game or not.


The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
KotOR 1 Restoration Demo (Group collaboration with many team members)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version (Most of the work done by Varsity Puppet)
Fallen Guardian is online now   you may: quote & reply,