This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

EmbersStudio

Tactical Shooter AI needs to damage Player

9 posts in this topic

I recently got the TSA and I need help with making the bullets damage the player's health. I am using the FPS Kit 1.5

 

This is the apply damage part of "BulletScript"

Please login or register to see this code.

This is the FPS "HealthScript"

Please login or register to see this code.

 

Share this post


Link to post
Share on other sites

I got TSA too and all you have to do is create a health script with variable Damage(float damage) 

tsa will call that variable automatically everytime you get hit by a enemy bullet

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

Okay, Thank you! By any chance, do you think you can help me?

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

help on what?

1 person likes this

Share this post


Link to post
Share on other sites

never mind, i got it

Please login or register to see this quote.

 

Share this post


Link to post
Share on other sites

Can you help me with the script you used? Because the script i try to make isnt working

1 person likes this

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

no

Share this post


Link to post
Share on other sites

@Mijndert123 On bullet "Rifle, Shotgun..." Add Player to the Layer Mask. I felt stupid when I found it out cause it was so simple.

Please login or register to see this attachment.

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

yup it is. you just had to check things more carefully. thats the reason why I didnt want to help that guy above because he asks for help before even checking the package he has purchased

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now