KodieCorn
|
  |
| Joined: 23 Jul 2012 |
| Total Posts: 6500 |
|
|
| 28 Dec 2015 12:41 AM |
Is it possible to make a script that if a humanoid takes damage it chases you ?
Like if you have a humanoid in an rpg game and someone shoots it with a bow from far away it will start chasing you.
Or if you shoot a zombie from far away with a gun it wont stand still and will start following you. |
|
|
| Report Abuse |
|
|
| |
|
SameySam
|
  |
| Joined: 22 Mar 2012 |
| Total Posts: 11040 |
|
|
| 28 Dec 2015 12:49 AM |
| Kitteh6660's rpg kit does that |
|
|
| Report Abuse |
|
|
indeimaus
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 4285 |
|
|
| 28 Dec 2015 01:22 AM |
| I don't know how to code AI |
|
|
| Report Abuse |
|
|
KodieCorn
|
  |
| Joined: 23 Jul 2012 |
| Total Posts: 6500 |
|
|
| 28 Dec 2015 01:28 AM |
| Hmmmm I'll try to figure something out, if not I can just stick with swords |
|
|
| Report Abuse |
|
|
SameySam
|
  |
| Joined: 22 Mar 2012 |
| Total Posts: 11040 |
|
|
| 28 Dec 2015 01:10 PM |
| maybe try making a follow script and making it enabled once healthchanged |
|
|
| Report Abuse |
|
|
KodieCorn
|
  |
| Joined: 23 Jul 2012 |
| Total Posts: 6500 |
|
|
| 29 Dec 2015 01:24 AM |
The orcs in RangeMelude's place TLON start chasing you if you attack them with a ranged staff
Hmmmmm.. |
|
|
| Report Abuse |
|
|
Link5659
|
  |
| Joined: 04 Jun 2012 |
| Total Posts: 4525 |
|
|
| 29 Dec 2015 01:27 AM |
| The wiki literally tells you |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2015 01:30 AM |
function(DeezNuts)
script.Parent.DeezNuts.Reflection = 11111111111111.1341341248028HAXEHFIBEAIUF)999999999999999999r fergjfio vawejrniotfwvrnipjg iuore
|
|
|
| Report Abuse |
|
|
KodieCorn
|
  |
| Joined: 23 Jul 2012 |
| Total Posts: 6500 |
|
|
| 29 Dec 2015 01:36 AM |
Where exactly in the wiki ? can I have a link
And im talking about ranged attacks not melee |
|
|
| Report Abuse |
|
|
KodieCorn
|
  |
| Joined: 23 Jul 2012 |
| Total Posts: 6500 |
|
|
| 29 Dec 2015 02:29 AM |
| I've even went through a bunch of models switched there follow distance to 10 and shot them from far away and none of them even budged or tried to chase me. |
|
|
| Report Abuse |
|
|
KodieCorn
|
  |
| Joined: 23 Jul 2012 |
| Total Posts: 6500 |
|
|
| 29 Dec 2015 10:49 PM |
I've been told I need a weapon that adds a tag value to that monster which includes a username. Then the monster checks for this tag and whenever it finds one, it will follow the username in that tag. Then the tag automatically vanishes after 10 seconds of not hitting the monster so it won't continue to follow when you run away for too long.
Do I need one script in the weapon to add the tag and the other script in the monster to check for the tag ?
Can anybody help with this ? |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2015 10:55 PM |
"Do I need one script in the weapon to add the tag and the other script in the monster to check for the tag ?"
Yes, to both question. |
|
|
| Report Abuse |
|
|
KodieCorn
|
  |
| Joined: 23 Jul 2012 |
| Total Posts: 6500 |
|
|
| 01 Jan 2016 02:36 AM |
Bump.
still unsuccessful with making these scripts.
Halp. |
|
|
| Report Abuse |
|
|