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.

giosto

tree chopping script

Recommended Posts


Please login or register to see this quote.

I made it myself but it didn't work, then I found some scripts in google but I don't know how to use :(

Edited by giosto

Share this post


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

Then your answer should be simple, you need to learn how to code well enough to either do it your self or understand someone else's script. If you are looking for work to be done for you by a load of people that don't know much about anything try Stackoverflow

Share this post


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

hahah your profile picture fits really well :DDDD ... check out this one : Please login or register to see this link.   (you can also destroy the tree gameobject ... use scripting reference if you stuck) 

Share this post


Link to post
Share on other sites

I can't write a script for you but i can say how to do it;

Just like ballistics scripts, you can use send message function with a linecast to detect if there is a tree in front of player. If yes, then check for input, then send damage message to tree. In tree, you can write a script to handle the health. When tree's health dropped zero, add logs to scene with Instantiate code or just send logs directly to inventory.

If you still can't make it work, i can (if i have time) write a basic script for you tomorrow.

  • Like 1

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
Reply to this topic...

×   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.


×
×
  • Create New...