#include <HealthBPLib.h>
◆ ConvertPhysicalBodyStrengthToString()
113{
114 const UEnum* PhysicalBodyEnum = StaticEnum<EPhysicalBodyStrength>();
115 if(PhysicalBodyEnum == nullptr){return "";}
116 FString CategoryConverted = PhysicalBodyEnum->GetValueAsString(PhysicalBodyStrength);
117 FString LeftString;
118
119 FString RightString;
120 UKismetStringLibrary::Split(CategoryConverted, "::", LeftString, RightString);
121 return RightString;
122
123}
◆ GetBodyPartAttachPoint()
| FName UHealthBPLib::GetBodyPartAttachPoint |
( |
EBodyPartName | BodyPartName | ) |
|
|
static |
9{
10 switch (BodyPartName)
11 {
12 default:
14 return FName("spine_01");
16 return FName("head");
18 return FName("UpperArm_L");
20 return FName("UpperArm_R");
22 return FName("hand_r");
24 return FName("Hand_L");
26 return FName("Thigh_L");
28 return FName("Thigh_R");
30 return FName("Pelvis");
31 }
32}
◆ GetBodyPartFromBone() [1/2]
50{
51 if(Bone == FName("head") ||
52 Bone == FName("eyes") ||
53 Bone == FName("eyebrows") ||
54 Bone == FName("neck_01"))
55 {
57 }
58 if(Bone == FName("spine_01") ||
59 Bone == FName("spine_02") ||
60 Bone == FName("spine_03"))
61 {
63 }
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
110}
◆ GetBodyPartFromBone() [2/2]
35{
37 {
38 for(int i = 0; i < BoneData.Bones.Num(); i++)
39 {
40 if(Bone == BoneData.Bones[i])
41 {
42 return BoneData.BodyPartName;
43 }
44 }
45 }
47}
Definition HealthData.h:26
The documentation for this class was generated from the following files:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/Health/Source/Health/Public/BPLib/HealthBPLib.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/Health/Source/Health/Private/BPLib/HealthBPLib.cpp