try:
bpy.data.actions.remove(bpy.data.actions[name])
except:
- print(f"WARNING: This action called <{name}> does not exist!")
+ print("WARNING: This action called", name, "does not exist!")
-nameActions = ["backleft", "backright", "deadone", "deadtwo", "dieone", "dietwo", "draw", "duck", "duckbackwardleft", "duckbackwardright", "duckwalkforwardleft", "duckforwardleft", "duckforwardright", "duckidle", "duckjump", "duckstrafeleft", "duckstraferight", "duckwalk", "duckwalkbackwards", "fly", "forwardleft", "forwardright", "idle", "jump", "melee", "painone", "paintwo", "run", "runbackwards", "shoot", "strafeleft", "straferight", "taunt"]
+actionNames = [
+ "backleft", "backright",
+ "deadone", "deadtwo",
+ "dieone", "dietwo",
+ "draw",
+ "duck", "duckbackwardleft", "duckbackwardright", "duckwalkforwardleft", "duckforwardleft", "duckforwardright", "duckidle", "duckjump", "duckstrafeleft", "duckstraferight", "duckwalk", "duckwalkbackwards",
+ "fly",
+ "forwardleft", "forwardright",
+ "idle",
+ "jump",
+ "melee",
+ "painone", "paintwo",
+ "run", "runbackwards",
+ "shoot",
+ "strafeleft", "straferight",
+ "taunt"
+]
-for i in range(len(nameActions)):
- removeAction(nameActions[i])
+for i in range(len(actionNames)):
+ removeAction(actionNames[i])
print("ALL XONOTIC PLAYER ANIMATION ACTIONS REMOVED!")
\ No newline at end of file