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"

How do I ignore collision if my character is in a specific state?

I have a concept in mind that requires the player to go into a "Ghost" state. I plan to have the player enter this state by pressing N, and leaving by pressing N again. While they are in this state, I want to know how I could make them clip through specific walls (specifically, Cubes using the material MI_Template_BaseBlue), and nothing else, as well as retaining normal collision if they are not in the "Ghost" state. Could anyone give me a basic foundation on how to start this process? Thanks!

Product Version: UE 4.19
Tags:
more ▼

asked Jun 06 '18 at 12:18 PM in Blueprint Scripting

avatar image

Lamdin
1

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

3 answers: sort voted first

i would use the set collision response to channel node as seen in the picture below. you could pair this with a custom collision channel thats used just for your special walls. this way you will only modify the collision response to that one channel and everything else will be the same. oh and to implement the turning on and off of the feature you could just use a flipflop.

alt text

capture.png (47.0 kB)
more ▼

answered Jun 06 '18 at 01:32 PM

avatar image

ThompsonN13
10.1k 33 9 23

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

I don't know how to do it based on Material but I know how to do it using Collision Channels based on Tags or Actors or static meshes. You could indicate those walls that are a subclass of the ghostable staticmesh actor class by painting them with that material though.

more ▼

answered Jun 07 '18 at 10:02 PM

avatar image

mightyenigma
3.8k 18 20 20

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

Set la capsule compenant à la hauteur avec un node (je n'ai pas le nom sur moi) et mes le à 0 pour pouvoir faire passer le X en fonction de la variable "IsFalling", sinon leur désamensage se renty, donc X=V=IsFalling=1 Soit true ! Après tu le relie à la variable et à un branch (tu convertis en booléan la valeur) !

more ▼

answered Jun 08 '18 at 01:50 PM

avatar image

Tec_Zone
6 2 7

avatar image ThompsonN13 Jun 08 '18 at 02:01 PM

i think you posted this to the wrong thread.from my limited french and google translate you seem to be talking about something completely unrelated to the question at hand here.

(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