Jump to content

Recommended Posts

Posted

I want the PC to move to a certain spot in my module.. My PC is switched to Kreia for a side quest. Can anyone provide me with a script that will make my pc move? Thanks.

Posted

void main(){
object oPC = GetFirstPC();
location lDest = Location(Vector(20.0, 30.0, 1.0), 0.0);
//This means: Location(Vector(x, y, z), orientationInDegrees);
object oDest = GetObjectByTag("destination");
int bRun = FALSE; //PC will walk

//If you want to move to a location
AssignCommand(oPC, ActionMoveToLocation(lLocation, bRun));

//If you want to move to an object
AssignCommand(oPC, ActionMoveToObject(oDest, bRun));
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines.