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 To Make One Way Shield?

How do I create a flat plain barrier or spherical shield that will block projectiles coming from one side but ignore from the other?

For example a player pawns a shield that is a spherical bubble around them. The shield blocks all incoming projectiles but allows the owning player and anyone within the bubble to shoot through the shield unhindered?

Product Version: UE 4.15
more ▼

asked Apr 16 '17 at 04:52 AM in Blueprint Scripting

avatar image

10 5 6 9

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

1 answer: sort voted first
more ▼

answered Apr 16 '17 at 05:22 AM

avatar image

91 3 4 6

avatar image Xnar Apr 16 '17 at 08:15 PM

Originally I did not believe that answer would work but after a long run of troubleshooting I finally got it to work...I don't know what it was that I changed to make it work :/

Is there a way to cast to all Projectile types that overlap? If I really use this answer I will need to make a new cast for every projectile Actor and any other Actor type in my game that is capable of crossing the shield.

Now what I need to do for bullets that pass through this shield, they should be reset to their original Object type in the chance they can pass through additional One Way shields. Obviously I can set another trigger to OnEndOverlap to set the projectile back to the type Projectile.

As for player Pawns I realize I will need to make additional collision boxes specifically for pawns because the pawns that pass through the same overlap event will be subject to having their object types changed to projectile types.

Would be great if the collision box could differentiate objects colliding based on the actor's forward vector within 180 degree range rather than a designated area box.

(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