Foliage collision effect (affected by multiple players)
Hello all. I've replicated the effect from this thread in order to get foliage to move as the player brushes past: https://forums.unrealengine.com/showthread.php?1795-Foliage-collision-foliage-bend-on-collision-In-engine-feature
The solution in that thread works for one player pawn, however as I'm making a local multiplayer game, it also needs to work with the rest of the players (up to four in my case).
I've already adapted the Material Parameter Collection to include parameters for each player. But when I go into the material editor, the node for the Material Expression Collection Parameter only lets me select one player as the parameter. Switching between them does indeed work as expected, but I need to be able to have the effect applied for all players at once.
Demonstration gif: http://gfycat.com/ReflectingUnkemptBlackfootedferret
Material Collection Parameter screenshot : https://i.imgur.com/9NxQ0rE.png
Foliage material screenshot : https://i.imgur.com/Z70LIrD.png
Hey zerofiftyone -
You should be able to duplicate your calculation for the Player0 world offset using each of the player inputs separately so you will have 4 duplicates for Player0, Player1, Player2, and Player3 then add each of them together and plug the total into World Position Offset.
answered Aug 04 '14 at 09:10 PM
Lovecraft_K ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here