Wolf_EX Posted August 9, 2017 Share Posted August 9, 2017 I am doing the creature mod tutorial and am trying to figure out how to make it so I can attack the creature. I looked through multiple prefabs that you can attack and the things they all have in common that has to do with combat is inst:AddComponent("combat") inst:AddComponent("health") inst:ListenForEvent("attacked", OnAttacked) local function OnAttacked(inst, data) .... end I added each of those to my prefab(in the correct place) and I can't attack the creature when i left click it. What am i missing? Link to comment Share on other sites More sharing options...
Wolf_EX Posted August 9, 2017 Author Share Posted August 9, 2017 I figured it out. I didn't know you couldn't attack followers and gave it a follower component. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.