generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Object follower/attack players when close

Previous Thread :: Next Thread 
darkmanz5 is not online. darkmanz5
Joined: 21 Dec 2010
Total Posts: 126
15 Nov 2015 05:47 AM
Alright so, I'm probably going to explain this horribly yet, I do wish that you guys could give me an anwser for this, all I wish to know is.. Is this possible?

So what I'm trying to achieve is that.. You got this NPC (A monster) which has it's goal to attack a certain object (I know how to do this). Yet when this NPC (Monster) gets within ... studs to a player he changes it's path to attempt and kill this player.

Now, I'm wondering if this's possible, if yet, which functions would I have to use to make it work? (That just so it's easier for me to do research on those functions).

Hope to get a honest anwser, and no trolls. Please.
Report Abuse
darkmanz5 is not online. darkmanz5
Joined: 21 Dec 2010
Total Posts: 126
15 Nov 2015 06:30 AM
Le Bumpo.
Report Abuse
darkmanz5 is not online. darkmanz5
Joined: 21 Dec 2010
Total Posts: 126
15 Nov 2015 07:45 AM
bump 2
Report Abuse
darkmanz5 is not online. darkmanz5
Joined: 21 Dec 2010
Total Posts: 126
15 Nov 2015 08:35 AM
bump 3
Report Abuse
ThisUserSecret is not online. ThisUserSecret
Joined: 29 Sep 2012
Total Posts: 1094
15 Nov 2015 08:56 AM
It's possible, yes.



~~Head of Moderation and Application at F3X~~
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
15 Nov 2015 09:13 AM
When you create a path, it'll return it's length if you ask nicely. :p
Report Abuse
darkmanz5 is not online. darkmanz5
Joined: 21 Dec 2010
Total Posts: 126
15 Nov 2015 09:20 AM
Is it possible that you could explain me how I could do this? Or give me a link to a site that explains it?
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
15 Nov 2015 09:24 AM
I'm not sure if you can actual return the length of the path.

If you find a path to each player, then count the points to get there, and if any are short enough, you could pursue it?
Report Abuse
darkmanz5 is not online. darkmanz5
Joined: 21 Dec 2010
Total Posts: 126
15 Nov 2015 09:31 AM
Hmm.. I see, will give it a try. Thanks.
Report Abuse
Dogejia is not online. Dogejia
Joined: 08 Feb 2012
Total Posts: 1873
15 Nov 2015 09:49 AM
You can use Region3 or magnitude :)


Dogemon, gotta pet them all!
Report Abuse
darkmanz5 is not online. darkmanz5
Joined: 21 Dec 2010
Total Posts: 126
15 Nov 2015 09:54 AM
Aha.. Looks like this's going to be even harder then I though.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image