• 0
danielps

Attach a mob to a NPC

Question

Hey guys,

Is that possible? Attach a mob to a npc and this mob will follow this npc? o.O

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Its possible, just edit out a moving npc script but have atleast 2-3 cells apart but same coordination.

Share this post


Link to post
Share on other sites
  • 0
10 hours ago, Promeister said:

Its possible, just edit out a moving npc script but have atleast 2-3 cells apart but same coordination.

Don't i need a src modification?

How do i attach a mob to a NPC? Is there any command or i need to create it?

Last question, can i attach this mob to a far npc and this mob walk until arrivethe npc?

Thanks a lot man!

Share this post


Link to post
Share on other sites
  • 0

Get the mob unique game id (if invoked through scripting), move the npc with npcwalkto or sthg like that, and move the mob with unitwalk to the specified coordinates.

I suppose something like that should work, if you do it little by little. Never tried it thought.

Share this post


Link to post
Share on other sites
  • 0
10 minutes ago, Alayne said:

Get the mob unique game id (if invoked through scripting), move the npc with npcwalkto or sthg like that, and move the mob with unitwalk to the specified coordinates.

I suppose something like that should work, if you do it little by little. Never tried it thought.

I invoked the mob through script, but i don't want to give the impression that the mob is following the npc, i really want the mbo to follow the npc.

Look, what i want to do is, I need the mob to walk through all the map in straight line (i can do it), if he see another mob or player enemie he fight (i can do it), and after fight the mob mus go ahead and continue walking to the specified position (this i cant and dont know how to do), that is whwy i tought in make the mbo follow a (hidden) npc  in the other side of the map. Do you guys have a easier idea how to do that?

Look this video, that is what i want to do:
 

 

Share this post


Link to post
Share on other sites
  • 0

Well that's waht @Capuche answered you on your other topics. Right now, I can't see another option than the one he gave you, but it's not implemented yet...For the unitwalk shouldn't remove the vincinity (don't think so, but never validated it)

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Alayne said:

Well that's waht @Capuche answered you on your other topics. Right now, I can't see another option than the one he gave you, but it's not implemented yet...For the unitwalk shouldn't remove the vincinity (don't think so, but never validated it)

Ok,

But i'm not so good with src, i need some direction, where to start, what files to study etc..

I really wanna do this, but dont know how to start =/

Share this post


Link to post
Share on other sites
  • 0

I don't watn anybody to do it and give me ir ready. I'm smart and excited to do that, if somebody just lead me to the right path, i think i can do this and post here in the community. Almost all my src mod, i did with @Playtester help, he told me where to start and i did everything work as i wanted xD 

If there is somebody who have any idea, how to do that, on at least where to start studiyng, i'd be very gald ^^
    Thank you guys!

Share this post


Link to post
Share on other sites
  • 0

Well let's be honest...I'm not good at it either x) 

So I'll leave someone else answer this time, sorry ^^'

Share this post


Link to post
Share on other sites
  • 0
8 hours ago, Alayne said:

Well let's be honest...I'm not good at it either x) 

So I'll leave someone else answer this time, sorry ^^'

Ok bro no problem, thanks for helping!

 

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.

Loading...