0
Answered

I purchased the shooting module and the Stats module and used them together.The revolver cannot damage the AI.

cloud cang 5 months ago in Stats updated 5 months ago 7

I am doing the shooting part of the game. I bought the shooting module and the Stats module. I admit that the Stats module and the shooting module are very easy to use, and the behavior tree is so easy to use. In the future, I will buy the melee module, and maybe other modules. Back to the topic, I used a combination of the shooting module and the Stats module and found some problems with the shooting module. The shooting mode of the revolver is ray, but when I use the revolver to shoot AI, the HP of the AI has not decreased. I used It is Example-5 of the Stats module.I added a revolver to my character.How can ray weapons cause damage to AI? I hope you can help me.

Unity version:
2019.3.8
Game Creator version:
1.1.6
GOOD, I'M SATISFIED

This problem has been solved, thank you for your reply and help.

Satisfaction mark by cloud cang 5 months ago
Answered

Use the "On Receive Shot" Trigger on the character and use the "Add Stat" action to remove health from the character based. It can either be a fixed number or a value that takes into account the character's defense and the enemy's attack power, or whatever you need (it's a Formula after all, so you can type in anything).

I added the "On Receive Shot" Trigger to the enemy AI, but when the character shoots the AI, the HP of the AI will not decrease. We need video tutorials, and I found that many people buy these modules and will not use them. This is for GC. It is unfriendly for beginners, I hope you can do some video tutorials.

I just tried your method. As a result, the HP of the Player character has decreased, and the HP of the enemy AI has not decreased. I do n’t know what ’s wrong, can you send me a screenshot? Or record a video. GC and some modules are not long, need these. Looking forward to your reply.

because you make "action" decrease Health of invoker. I don't know why they make "attacker" as "invoker", but it is not Enemy AI who got the damage. you can set "GameObject" instead of "Invoker"/

I tried it, they all have the same result, they should record some video tutorials, especially newcomers who just bought GC like us.

I tried it, they all have the same result, they should record some video tutorials, especially newcomers who just bought GC like us.

This problem has been solved, thank you for your reply and help.