x

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"

Level Blueprints that load a particular character model

Hello all, I have a question about Blueprints that I was hoping could be answered. I have two different versions of the main character for my game. I want 1 version of player character to load indoors and another to load outdoors; the problem is I dont know exactly how to do that. Anyone have pointers?

Product Version: Not Selected
Tags:
more ▼

asked Mar 28 '15 at 05:48 PM in Blueprint Scripting

avatar image

willh313
1 2 5 6

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

2 answers: sort voted first

You can use Set Skeletal Mesh for your character component, and use an Overlap system with trigger volumes to change the character.

In your character BP, make a custom event (or function; doesn't really matter I suppose) that fires into a Set Skeletal Mesh. You could have an event called To Indoor Character and an event called To Outdoor Character. If you have any other components that would to change besides the skeletal mesh, you'll need to set those too.

You can click the volume in the level and right click in the level BP to get the OnActorBeginOverlap node. Take the actor output from that and plug it into a Cast to your character class node. Take the output from there and call one of your events.

PS If you need pics I can do that. I just can't as I'm writing this right now.

more ▼

answered Mar 28 '15 at 06:49 PM

avatar image

DG Gage
1.7k 62 31 129

avatar image willh313 Mar 30 '15 at 04:03 AM

Thank you very much I will give this a try.

avatar image willh313 Apr 05 '15 at 07:51 PM

I haven't had a chance to get to this yet, other classes lol. I will give this a go this evening and let you know though thanks very much for the pictures.

avatar image willh313 Apr 15 '15 at 09:08 PM

hello again. I finally was able to try this out and it does not seem to trigger the indoor character to load. I followed the intructions but perhaps I am doing something wrong?

avatar image DG Gage Apr 15 '15 at 09:37 PM

Pics plz :)

avatar image willh313 Apr 15 '15 at 09:48 PM

I think the problem is in my character blueprints. My group mates have two my characters, one for indoors and one for outdoors. This is the case because our client made two different meshes for the character (outdoor and indoor) I will attach the picks of the character blueprints and functions I have made.

alt text

Again I think I have done something wrong I also seem to have this problem where the cast to mycharacter indoors does not allow me to pick the custom event, it only allows me to "cast to" again. Thanks for your help.

alt text

pic indoors.png (210.6 kB)
avatar image DG Gage Apr 16 '15 at 12:12 AM

You should only need one character BP. It can have its skeletal mesh set to whatever you want it to start out with.

That event you made, To Outdoor Character, in your MyCharacter BP, will work just fine. Cast to MyCharacter instead of Cast to MyCharacterIndoors. From the castm drag out the blue pin and type in the event name. Find it and hit enter to use it.

And then of course, create a To Indoor Character event in your MyCharacter BP and have it fire on End Overlap

Let me know if you run into any trouble

avatar image willh313 Apr 16 '15 at 12:30 AM

Ok thanks Ill give it a go

avatar image willh313 Apr 16 '15 at 02:34 AM

Awesome man that worked thx so much for this!

avatar image DG Gage Apr 16 '15 at 03:01 AM

Happy to help! :)

Go ahead and mark the answer as accepted for anyone else who may need help with this

And have fun!

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

Again thanks for your help, I think I may need those pictures you offered if they are still on the table?

more ▼

answered Mar 31 '15 at 05:12 AM

avatar image

willh313
1 2 5 6

avatar image DG Gage Mar 31 '15 at 02:52 PM

No problem!

You would put this custom event in your character BP (just right click and type in "custom event" to make one)

alt text

Select the trigger volume in the level, go into the level BP, and right click to access functions related to that object. Simply type "overlap" to grab that function.

alt text

And on overlap, use the actor output to cast to your character. From the cast output, you'll be able to trigger those custom events.

alt text

avatar image DG Gage Apr 05 '15 at 03:35 PM

Hey did this work out for you?

avatar image willh313 Apr 17 '15 at 09:32 PM

Hi again I still have one small problem when I load a particular level (Indoors or Outdoors) the proper character now loads;thanks again for that, but it seems I can only have animation blueprint activated at a time; eg: if the animation is set to indoor the the outdoor version of my character will appear when it should but in a "T" pose. Is there something else I should do?

avatar image willh313 Apr 18 '15 at 01:40 AM

I figured it out and will post pictures soon

avatar image willh313 Apr 18 '15 at 03:39 AM

Here's what I did:

alt text

fix.png (189.0 kB)
avatar image DG Gage Apr 18 '15 at 05:23 AM

Ah okay I didn't know you wanted to use a different anim BP. Glad you figured it out though!

So is everything all squared away?

avatar image willh313 Apr 18 '15 at 05:47 AM

Only one more nagging issue, I have been trying to get my enemies to chase my player character, one of them does but the others just look at you when you cross their path. I know this isn't really related to the subject but you are the only person that seems to be responding to question. I think it's related to the fact that they have different nav meshes but the same controller. Like I said not related but if you have any tips, I'm all ears.

avatar image DG Gage May 18 '15 at 08:48 PM

Hey man sorry I didn't get back to you! I must've not seen the notification for this.

How bout your mark my answer here as accepted, assuming things went well with this particular issue, and then post a new question related to that new issue?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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