How efficient is this?
Code:
|
Re: How efficient is this?
Can't you use entity_range()? Tasks are bad, but 3 seconds I don't know.
|
Re: How efficient is this?
Quote:
EDIT: I thought of something else. Since the "NPC" is a custom entity. I make it's nextthink at 1 second. And use "register_think" or fakemeta forward it. How about that? |
Re: How efficient is this?
You could try to create an aiment entity, with the npc as owner, this ent with a large radius, and hook the touch between players and entity.
|
Re: How efficient is this?
Indeed.
And by the way, Hamsandwich is the way to go :) |
Re: How efficient is this?
register_think from engine is the way, no need of ham here.
|
Re: How efficient is this?
Quote:
That seems good. |
Re: How efficient is this?
His point is you should let the engine take care of those calculations for yuo. As you may have figured, PreThink is called VERY often and therefore shouldn't be used on slow calls.
@ 01010111: It seems you find it amusing to talk about what you don't know, isn't it? |
Re: How efficient is this?
Quote:
|
Re: How efficient is this?
Quote:
Code:
|
| All times are GMT -4. The time now is 22:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.