Jump to content
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.

  • 0
Sign in to follow this  
CakeMonsTv

Player damage

Question

I need some help with player damage script. I use AU FPS kit and i would like to make so that zombie that i added does damage to player. Any ideas on how to do that?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

You have a health script on your player. Create a simple function on your zombies using SendMessage.

When the player is near a zombie (or if the player is inside a specific collider), after a while, send a message to this script so as to decrease health ++

Please login or register to see this link.

Please login or register to see this link.

Share this post


Link to post
Share on other sites

  • 0

Scripts are in javascript. What would be code for that?

EDIT: I got it working thanks

Edited by CakeMonsTv

Share this post


Link to post
Share on other sites
  • 0

I guess that it is not a big deal to export this code in JS ++

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...