Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would i go about making NPCs use Tools? [closed]

Asked by 6 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

Hello, i am making a game and i am wanting to make an NPC use tools for combat I have seen this done before especially in games such as 'Summoner Tycoon' and this really fascinated me because i am super interested in AI.

I'm guessing i will have to use an Event which is triggered when the npc is close enough to something?

I don't want the code i just want to know how to go about this situation. Thankyou

0
Not a request site! User#19524 175 — 6y
0
It's fine. unmiss 337 — 6y

Closed as Not Constructive by User#19524 and User#21908

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 6 years ago

Okay so.. 1. This isnt really for this site but i still can help you!

  1. Make it so the magnitude of the HRP of the NPC and of the Player are near each other it walks to the person.
  2. Make it so they hold a tool ._.
  3. Make it so they use a animation (with the tool) when theyre like.. standing against the person (Make a check for this with Magnitude again)
0
1. Make it so the magnitude of the HRP of the NPC and of the Player are near eachother, and then make it walk to the person* sorry my bad CrazyScript3r 67 — 6y
0
Might want to be specific about the meaning of 'HRP'. I know it means HumanoidRootPart, but it can have different meanings for different people. Some may not even know its meaning. User#19524 175 — 6y
0
Yeah that was what i was thinking. Thankyou NoirPhoenix 148 — 6y
Ad