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 to make objects transparent at render.

In my game I have different types of characters and certain types can see different characters.

Eg Human - can see only other Humans

  Spirits - can see Other Spirits and Humans.


How will I accomplish this?

And I want to make it possible for the Human to gain the ability to see Spirits over time, so i thought about adding a float value that sets transparency so if the float is at 5.0/10.0 the person can see the object but not the details.

Is it possible to add a material on it but will only change on one instance of the game for Multiplayer purpose. I want certain characters to be able to see certain object/characters

Product Version: UE 4.13
Tags:
more ▼

asked Sep 19 '16 at 02:09 PM in Rendering

avatar image

FirePhoenixOffical
6 1 2 5

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

1 answer: sort voted first

To do this you simply have to change the visibility of the enemies using code. There is a node called "set hidden in game" and if you feed this node a true value it will be invisible.

Every time you switch you have to make sure you update these changes so i would make a check inside the enemy blueprint that sets these values depending on what the player is.

For the transparency over time mechanic you must use a translucent material where you update the opacity as the game progresses. To do this you should make a material parameter collection with a scalar value called "opacity". Set this value to 0.0 in order to hide the enemy and 1.0 to be fully visible. Then simply connect the material parameter node to your opacity pin in your material.

HTH

more ▼

answered Sep 19 '16 at 02:35 PM

avatar image

NoobsDeSroobs
2.7k 107 35 180

avatar image FirePhoenixOffical Sep 25 '16 at 10:52 AM

Your idea would work in a single player situation but not in multiplayer situation. I need it for a multiplayer situation

(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