Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Realtime spline creation

What i am trying to recreate is an easy path line.


alt text

I was able to create the spline mesh following this Video tutorial, now i just using the path points and passing it to my spline but i receive many warning during the gameplay and i cannot see any spline. The warning is this "Calling SetStaticMesh on 'None' but Mobility is Static".

Unfortunately i don't have my blueprints right now, i will provide it in 9 hours, but if somebody will eventually explain me the warning i could fix it by myself.

Product Version: Not Selected
more ▼

asked Nov 14 '14 at 10:42 AM in Blueprint Scripting

avatar image

18 2 5 5

avatar image Azaratur Nov 15 '14 at 09:42 AM

Ok here is my spline blueprint. I just set the points in another function and call this one.

And here is the complete warning: Warning AttachTo: '/Game/Maps/UEDPIE_0_Example_Map.Example_Map:PersistentLevel.SplinePath_C_4.Spline1' is not static (in blueprint "SplinePath"), cannot attach '/Game/Maps/UEDPIE_0_Example_Map.Example_Map:PersistentLevel.SplinePath_C_4.SplineMeshComponent_1' which is static to it. Aborting. Warning Calling SetStaticMesh on 'None' but Mobility is Static.

![alt text][1]

spline.png (260.1 kB)
avatar image morglion Jan 05 '15 at 04:39 PM

Okay, I don't know everything about splines, but I can tell you a few things about them. 1) In your blueprint, click the "add spline mesh component" node. In the detail panel to your left (in the bp), make sure that it is "Moveable" and not static. 2) In the for loop in the picture above that you posted, it is important to note that because spline point indexes start at 0, when you add 1 to the point index you are indeed returning an invalid point - because - it doesn't exist yet. So to solve this, after you've gotten the number of spline points, subtract one (- 1) from it - this is the number you plug into the "last index" in your for-loop. Lastly, as I see also in the picture you're using points for location and tangents rather than a distance scale and segments... try viewing this tutorial. It may answer some questions for you, but as I've found the deeper you dig the more questions you have :/

Hope it helps


avatar image RyanGadz Feb 12 '15 at 10:53 PM

Thanks morglion! Setting the SplineMeshComponent to moveable finally allowed me to take the spline mesh out of the construction script and into the event graph.

avatar image Ryukra Apr 03 '15 at 09:59 AM

can't seem to send a private message, but I'm interested in this work, I'm also working on a turn based combat system and am grateful for your questions. I can take a lot from it, but it's a bit unclear how to get there. If you like to collaborate/trade blueprints, that would be very nice. ^_^ I can help with other blueprints, 3d modelling/texturing and music~

avatar image Dragoonsanddune Apr 16 '19 at 05:31 AM

Um how did you get the create event to allow add spline mesh... I tried to call it as construct create event but it error red me out saying that it cant be here. as it wont compile but yet when i use it on blueprint default construct event it let me do it ?

avatar image Azaratur Apr 16 '19 at 07:54 AM

Well it's a very old post.. Many things are changed and i am not working on this project anymore. You should create a new post.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question