Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Oct 2015
Xephael Offline OP
apprentice
OP Offline
apprentice
Joined: Oct 2015
For those who want to learn how you can make NPCs patrol around, here's a basic tutorial using splines: https://docs.larian.game/NPC_Patrols
Let me know if you have any suggestions to improve it.

Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
What's the benefit of using a spline patrol vs a normal trigger patrol?

Joined: Oct 2015
Xephael Offline OP
apprentice
OP Offline
apprentice
Joined: Oct 2015
Originally Posted by SniperHF
What's the benefit of using a spline patrol vs a normal trigger patrol?

Well, a spline patrol is a bit more simple and easy to set up, but I was planning to add information on the differences between each patrol type to that page as well. Just figured I'd put up the basic guide for anyone who needs it.

Joined: Dec 2013
old hand
Offline
old hand
Joined: Dec 2013
Great to see more people contributing to the wiki, thanks for putting this up. wave


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Joined: Sep 2017
T
stranger
Offline
stranger
T
Joined: Sep 2017
Hello, are the splines invisible? I can still see them with the "game camera" activated but I can't be sure.

Joined: Oct 2015
Xephael Offline OP
apprentice
OP Offline
apprentice
Joined: Oct 2015
Originally Posted by TheLambert
Hello, are the splines invisible? I can still see them with the "game camera" activated but I can't be sure.

That's the case with everything in the engine window. In the game, things like triggers and splines aren't visible.

Joined: Sep 2017
T
stranger
Offline
stranger
T
Joined: Sep 2017
Ah, I just assumed the game camera would act like the game haha

Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
You can hide all that stuff in the editor as well if it bugs you when testing.

View > Gizmos (or control +L) You might have to do it twice.

Joined: Sep 2017
F
stranger
Offline
stranger
F
Joined: Sep 2017
I don't understand, I followed the tutorial and I added the Spline but the NPC is not following them. He just stay still...
Do you know if I can find another tutorial or a video ?

Last edited by Fraktal; 02/10/17 11:42 AM.
Joined: Oct 2015
Xephael Offline OP
apprentice
OP Offline
apprentice
Joined: Oct 2015
Originally Posted by Fraktal
I don't understand, I followed the tutorial and I added the Spline but the NPC is not following them. He just stay still...
Do you know if I can find another tutorial or a video ?

That's odd, I don't know of any other tutorials for patrols, but just to make sure, you added the spline patrol script to the NPC and changed the GUID to the GUID for the spline patrol right?

Joined: Sep 2017
F
stranger
Offline
stranger
F
Joined: Sep 2017
I recorded what I did.
Could you tell me what is wrong ?
Thanks !
https://youtu.be/qd3BEr_UcJc

Joined: Oct 2015
Xephael Offline OP
apprentice
OP Offline
apprentice
Joined: Oct 2015
Originally Posted by Fraktal
I recorded what I did.
Could you tell me what is wrong ?
Thanks !
https://youtu.be/qd3BEr_UcJc

Ah yes, what you're doing is adding three splines to the level. Instead, you'll need to add a single spline and use the spline point tool on the left to add waypoints to that spline. (After you click the tool, click the spline and then start clicking to add points). Let me know if that works.

Joined: Sep 2017
F
stranger
Offline
stranger
F
Joined: Sep 2017
thank you ! You make my day smile

Joined: Oct 2015
Xephael Offline OP
apprentice
OP Offline
apprentice
Joined: Oct 2015
Originally Posted by Fraktal
thank you ! You make my day smile

Glad that worked for you smile

Joined: Oct 2015
Xephael Offline OP
apprentice
OP Offline
apprentice
Joined: Oct 2015
Bumping this thread so that people with the default forum setting of 3 months can view it.

Joined: Jul 2015
D
member
Offline
member
D
Joined: Jul 2015
found a bug with spines I think. When I spawn a monster from a trigger.. they do not follow the path. In fact they spawn at the edge of the map, the corner were the PC spawns...spent sometime trying to debug then gave up...

Joined: Nov 2017
L
member
Offline
member
L
Joined: Nov 2017
What did you do to make the monster follow the path?

Joined: Oct 2015
Xephael Offline OP
apprentice
OP Offline
apprentice
Joined: Oct 2015
Originally Posted by Detect
found a bug with spines I think. When I spawn a monster from a trigger.. they do not follow the path. In fact they spawn at the edge of the map, the corner were the PC spawns...spent sometime trying to debug then gave up...

Unfortunately, I currently can't look into this because I'm not on a computer that can open the editor, and I've never spawned characters from a trigger. It sounds like the first thing to work out would be how to spawn the monster where you want them to spawn because that sounds like a separate issue. You could try asking about that in the general modding section. Other than that make sure the monster being spawned has the GEN_SplinePatrol script and that it's configured correctly with the Spline's GUID.

Originally Posted by LarIlya
What did you do to make the monster follow the path?

You need to add the GEN_SplinePatrol script to the monster with the GUID of the spline. The last three images in the tutorial explain how to do that.

Joined: Nov 2017
L
member
Offline
member
L
Joined: Nov 2017
Originally Posted by Xephael
Originally Posted by LarIlya
What did you do to make the monster follow the path?

You need to add the GEN_SplinePatrol script to the monster with the GUID of the spline. The last three images in the tutorial explain how to do that.


Sorry if my question was unclear. What I meant to ask was, how Detect was setting up a dynamically spawned creature's script.
But thank you anyway.


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5