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: Way to improve ## AI's?

Previous Thread :: Next Thread 
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
17 Feb 2017 02:34 PM
They lag if there is a some-what large group of them. Some equip rocket launchers or bombs, and it often generates quite a bit of lag.


Maybe I could use SetNetworkOwner to set the projectiles to the targeted player? I need ideas here. Thanks!
Report Abuse
AxonMega is online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
17 Feb 2017 02:36 PM
Try setting ### update wait time as high as possible. 5-10 times per second should be enough. Using ### RunService would be unnecessary.
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
17 Feb 2017 02:39 PM
What do you mean, update wait time?? Thanks for the reply.
Report Abuse
AxonMega is online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
17 Feb 2017 02:44 PM
Well assuming that your NPCs are bad guys who chase players, the update wait time or update delta or whatever is the time between each time the NPC is told which direction to go to follow a player. Are your NPCS different from this?

Setting network ownership could work for this, I recommend trying it.
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
17 Feb 2017 02:47 PM
Something like that. It uses pathfinding service to generate paths to get towards the target, also attacking along the way.



How could I go about using network ownership to fix this?
Report Abuse
ScripterJohn13 is not online. ScripterJohn13
Joined: 01 Jan 2010
Total Posts: 5658
17 Feb 2017 02:54 PM
When it decides to attack a player does it constantly keep looking for other players or does it just keep chasing that one until it can no longer see them or get to them? That is one thing you should consider adding to keep from constantly iterating the players... Then for the path service you should remain on the same path for so long before calculating a new one every iteration.. You know just try to use the same stuff until you can't and then calculate new path.
Report Abuse
ArkhamDeluxe is not online. ArkhamDeluxe
Joined: 21 May 2016
Total Posts: 561
17 Feb 2017 02:57 PM
Hi ########## Sorry that this post isnt feedback to improving your AI system but you mentioned that you use pathfinding and thats kind of what im after. The only pathfinding related information ive found is wiki and yt video by Roblox that just talk about how good pathfinding is but dont tell you where to actually get started about implementing it or any kinds of examples to work of. Any relative enlightenment would be much appreciated
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
17 Feb 2017 03:10 PM
Thanks for the suggestions guys. c:
Report Abuse
10MilesWide is not online. 10MilesWide
Joined: 06 Aug 2014
Total Posts: 2220
17 Feb 2017 03:21 PM
Use wait(10)
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