In my fps, when the user switches weapons, I want to update the weapon ammo/etc on my HUD
So I decided the way to do that was to update the child object of my arms rig, but I apparently can’t do any string searches of the data in the list? I attempted to use the GET function, but that does not work with partial matching, which is what I need.
armsRig = scene.objects["fArmsRig"] #getting the object name
childList = armsRig.children #If i print childList is has 2 objects, the arm mesh and gun run
guntype = childList.get("weap") #This doesn't work unless I already know the name
print("TYPE:",guntype,"ENDTYPE") #If I do the full name it prints it here, else error
if "weap" in guntype: #even though "weap" is in guntype, doesn't trigger
print("FoundWEAP")