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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 17 Feb 2017 03:10 PM |
| Thanks for the suggestions guys. c: |
|
|
| Report Abuse |
|
|
| |
|