I've been trying to create a plugin for TFC that allows players to walk through each other when they are in distance, and also check to see if there are any entities they need to interact with. The best way so far I found to check if players are near entities was to log the entity origins on their spawn, then check later on.
If the players aren't near each other they stay solid.
If players are near each other they become not solid.
If players are near each other, but also near an interaction entity, they become solid.
In the prethink it seems like the second for loop isn't looping.
I posted the full code here...
http://ampaste.net/19106
Hopefully someone can help me figure this out : /
I'm so confused, and my programming abilities aren't that great still.
Note: Alot of the code is from around the forum.