Good afternoon! Is it possible to create a line that will deal damage to enemies and move behind the character or something else. That is, the character is running and behind him a long line that causes damage to enemies.In the creative I have already found a red zone that can cause damage (if you go into it), but the question is how to make it move behind the character or something else? I hope experienced programmers will help me with this) If the zone as possible to attach to the player, tell me how it can be done please. But also I will be glad to hear options with a different approach to solving this problem and the realization of my idea.
ultimately you zone is just a collision yeah? or could even been a child actor, either way just attach it to the character and you’re good, just make sure it doesnt collide or interact with the character itself
Got it, thx. Yes it is like collision. After an enemy is touched, they will die or take damage. Can you tell me how to attach it? Is it done through UEFN?
you could
- use attach actor to actor/component function
- manually put it in the character BP
- make a child actor in the character BP and set it there
Can you explain a little more about what you are trying to do? Is the damage coming only behind the player or all around the player and what makes it start doing that? If it is that something happens and now the damage is turned on, how big is the damage area or in other words how close does another player need to be to you to start taking damage?
If it is just in a certain zone area, you could use a player class to control that. If you are class 2 you don’t get damaged, all other classes get damaged when entering that zone.
So when the event happens that starts the damage zone, that will change your player to class 2 - or whatever number you pick- and only that player is safe from damage. If you want to turn the tables you could have the opponent do an action that turns the damage off and/or changes the class 2 protected player back to the default class number you set up. If they change class and the damage device is still on, the player will now take damage too. If you don’t want them to take damage, when the class changes have it turn off the damage volume too.
Please give some more details as to what you want your game to do to find the best solution.
Let us know!
Thanks, I will explain later. First of all do u know where can I find a person who can make map for me? not free
thx. but I am just a begginer, so I didn’t understand anythink. Is it possible to explain for me with easier language and more detail. please)
So, I want to make the line follow the player. Imagine that u are the player, and line following you. So this line should be behind you and it should damage enemies who will touch it.
Like tron?