spezz
(spezz)
January 28, 2016, 3:58pm
1
so im trying to change my materials by press E but i can seem to get this to work here is my Blue print
i also tried doing it this way but it wouldnt take self as a pawn…
maybe someone might know another way for using a key to change materials in the Ark Dev kit ?
I was looking into this, found this link in the ue4 answers it may help guide you in the right direction!
Changing material instance parameter
Cannot see where you’re attempting to run this, but I assume you’re trying to do it on the structure itself in question. Something with a glass part I would hazard a guess to.
You will need to do it through MultiUse. Implement the following functions;
GetMultiUseEntries:
https://i.gyazo.com/b51401e7e9bd7e62cfa4af14183e3935.png
TryMultiUse:
https://i.gyazo.com/2b77473e4b93f083d7baaf792c46d952.png
Test the above, if that doesn’t work then a multicast event called in the TryMultiUse should be sufficient. No idea if the logic in question will work, handling the material that is.
-WM
spezz
(spezz)
January 28, 2016, 7:30pm
4
Cannot see where you’re attempting to run this, but I assume you’re trying to do it on the structure itself in question. Something with a glass part I would hazard a guess to.
You will need to do it through MultiUse. Implement the following functions;
GetMultiUseEntries:
https://i.gyazo.com/b51401e7e9bd7e62cfa4af14183e3935.png
TryMultiUse:
https://i.gyazo.com/2b77473e4b93f083d7baaf792c46d952.png
Test the above, if that doesn’t work then a multicast event called in the TryMultiUse should be sufficient. No idea if the logic in question will work, handling the material that is.
-WM
hey WM thank you so much for helping me out i was able to get it to work using what u did but i had to change 1 thing in the TryMultiUse:
now if i wanted to make it so lets say i can cycle through like Red Green Blue how would i do that or have it have a option for each color?
Mezzow
(Mezzow)
January 28, 2016, 7:38pm
5
Hmm that does not look right to me, have you tried if the color also changes when you use another menu option on that object? Because i suppose that is what will happen if you connect your logic to the default pin and not the actual use index.
spezz
(spezz)
January 28, 2016, 7:42pm
6
yes i tried and it dosent change color unless i hit change color menu.
Edit:
i changed it to refer to 9900 its working now
Mezzow
(Mezzow)
January 28, 2016, 7:53pm
7
To switch colors use a int variable as color index, add a switch on int for that color index in your logic to set the right color:
spezz
(spezz)
January 31, 2016, 3:19am
8
ok so i used script u gave me WoefulMacabre and im able to change the color in the dev kit but when i upload it … it doesn’t work… =/