Skip to main content

Dragon Age Toolset - Move NPC to waypoint

I've been playing around with the Dragon Age Toolset. I've spent the majority of time with it on level design. However, now that I've got a level area nicely fleshed out I've been doing a bit more with conversations and scripting in order to proceed with storyline and character interaction.

One of the issues I had was simply getting an NPC to move from one spot to another. The samples I found were incomplete or poorly written. The following is syntactically correct and works nicely.

Most of it is self-explanatory however the CommandMoveToLocation is the important bit. The second boolean argument is of note and determines whether the NPC walks or runs.

  1. void main()
  2. {
  3.     object npc = GetObjectByTag("myNPC");
  4.     object wp1 = GetObjectByTag("wp_myNPC_01");
  6.     location wpLoc = GetLocation(wp1 );
  8.     command moveCommand = CommandMoveToLocation (wpLoc , FALSE, FALSE);
  9.     AddCommand (npc, moveCommand);
  10. }


An NPC helps a person to

An NPC helps a person to create the project.There are many options for the development to this environment where the people can learn more details about the quality of this community.They want to get the research paper services for making their project just in time.

great to see this

expert assignment What a great post shared here. I'm very glad to find this site. keep sharing such kind of article. Thanks a lot. Must see here to explore this site. keep it up.

how to sync settings

If you want to learn how to sync settings in windows 10 then visit our homepage and you can do it easily on your pc.

You don't have to do all

You don't have to do all these like this. There are many better ways available for all of this. You can just add the plugin to your IDE and just change the parameters according to your needs. There is no need to type all these codes. click over here

I have read your post and got

I have read your post and got some idea about the dragon age toolset. While hearing its features, I got interested in installing it. But I don't know how to install it. Hope you will provide the procedure for it soon. internet providers

I haven’t used the Dragon Age

I haven’t used the Dragon Age Toolset. What is it used for mainly? I guess we can use it for level design. What is this code for? Can we use it to remove the error? Please provide the correct solution. garage door installation

i just downloaded it and I’m

i just downloaded it and I’m truly upbeat however how would i utilize it? particularly in the event that i need to make moods and such for the diversion

In the event that anybody can help kindly do!

I recently found so many

I recently found so many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing. coffee beans


I don’t think we need to type these codes over and over. What about using a plug-in and making the add-ons to that? It will be more convenient than making these regular modifications on the source codes. Anyway thanks for the share. billing and coding companies world world


Apple GarageBand for iPad is a great music production studio for those who are looking for a software utility to help take their music production to the next level.


I feel a lot more people need to read this, very good info! . . . . . .

I definitely enjoying every

I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work.


Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.


Should there be another persuasive post you can share next time, I’ll be surely waiting for it.
happy wheels demo

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <asp>, <c>, <cpp>, <cs>, <css>, <drupal5>, <drupal6>, <html4strict>, <java>, <javascript>, <jquery>, <php>, <python>, <ruby>, <sql>, <xml>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.