Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • CodeLikeMe_Turret.rar

Missing 1 full-res photo, 1 file, as this post has not yet been imported.

Content

This is part 7 of the Turret system in unreal engine 5 using C++. Today, we are going to work on damaging the player character when it gets hit by the bullets of the turret. Here, we will do a simple  line trace in C++ to detect if any character get hit by the bullet. If yes, the Damage event will be called on that hit actor. This damage event will be overridden in the character class to decrease the health value and spawn blood particles. If the health is reduced to 0, the character will die. On death, a ragdoll effect will be activated on the character mesh and the player will not be able to give any inputs. All of these will be implemented in C++.

password=CodeLikeMe_CppDamage

Files

Previews only

Unreal Engine 5 C++ Tutorial - Turret #7 - Damage and Kill Characters

Project Files: https://www.patreon.com/posts/62798395 . This is part 7 of the Turret system in unreal engine 5 using C++. Today, we are going to work on damaging the player character when it gets hit by the bullets of the turret. Here, we will do a simple line trace in C++ to detect if any character get hit by the bullet. If yes, the Damage event will be called on that hit actor. This damage event will be overridden in the character class to decrease the health value and spawn blood particles. If the health is reduced to 0, the character will die. On death, a ragdoll effect will be activated on the character mesh and the player will not be able to give any inputs. All of these will be implemented in C++. ► 👇 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐓𝐡𝐞 𝐂𝐡𝐚𝐧𝐧𝐞𝐥 // 𝐁𝐞𝐜𝐨𝐦𝐞 𝐀 𝐏𝐚𝐭𝐫𝐨𝐧! https://www.patreon.com/codelikeme ►Patrons will have access to project files of all the stuff I do in the channel and other extra benefits Full Adventure Tutorial Series: https://youtube.com/playlist?list=PLNTm9yU0zou5mxzKt2DUIE1QJSkGo7tvc Join this channel to get access to perks: https://www.youtube.com/channel/UClb6Jh9EBV7a_Nm52Ipll_Q/join Support my work: https://www.patreon.com/codelikeme Like my facebook page for more content : https://www.facebook.com/gamedevelopersclub/ Follow me on twitter : https://twitter.com/CodeLikeMe2 Follow me on reddit : https://www.reddit.com/user/codelikeme #CodeLikeMe #unrealengine #ue4 #indiegamedev

Comments

No comments found for this post.