Sign in to follow this  
Reztea

Make the PC move??

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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));
}

Share this post


Link to post
Share on other sites

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.

Sign in to follow this