i want to make snake Dragon model to follow the spline path

Hi Krishkrish,

Sure:

  • The spline is a variable to a reference of whatever your spline blueprint class is.
  • The Bones is an array of names. (If you’re new to arrays, you can just think of it like a list of names)
  • Everything else is a float - a number with a decimal.

The only variable I’m setting manually in the details panel is Speed, which I set to 800. I just played around with a value until I got one I liked.

Ah, I see I also used a “Get Snake Length” function I didn’t include in the previous post. Here’s the definition for that:

As for having it go up and down in the Z axis, it can - it just looks strange, and almost certainly has to do with the rotation. Depending on the rotation of your model, you may need to play with different values of rotation and scale for the X,Y plane too. Experimenting with different rotations and scales will probably fix it up.


Also, a tip: If you copy and paste a blueprint from blueprintue.com, and then right click on an variable in the graph, Unreal will give you an option to Create Variable that automatically has the right type.