Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the data processing subroutine into a coroutine #3

Closed
jamesrswift opened this issue Sep 5, 2017 · 1 comment
Closed

Move the data processing subroutine into a coroutine #3

jamesrswift opened this issue Sep 5, 2017 · 1 comment
Assignees

Comments

@jamesrswift
Copy link
Contributor

function Unstuck.Think()
for ply, data in pairs( Unstuck.ToUnstuck ) do
LoopData( ply, data, 1 )
end
end
hook.Add( "Think", "Unstuck.Think", Unstuck.Think )

As suggested by code_gs

You could do the the actual position testing inside of a coroutine so that the server doesn't have to halt to find the player a clear position.

@MrGrim48 MrGrim48 self-assigned this Sep 6, 2017
@MrGrim48
Copy link
Owner

MrGrim48 commented Sep 9, 2017

Coroutines should now be implemented with the latest update.

@MrGrim48 MrGrim48 closed this as completed Sep 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants