
10-28-2012, 02:15 AM
|
Will work for food. Maybe
|
 |
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
|
|
There are two ways to do it, neither are very attractive.
The first way, which is the smoothest way, is to do the detections yourself. The problem with this method is that it only applies to you. Other players will not reflect their status with the NPC(let's say a bridge in this case). If you touch the bridge and you make the bridge draw over you, it will draw over ALL other players. This method works fine offline though.
The second way is to use attachplayertoobj(), the benefit is that it remedies the issues with the above. Players are attached to the NPC, so if a player is on the bridge and the bridge is drawn over your player, so will the players on the bridge. The issue with this method though is it's serverside, so there is substantial lag when trying to attach/detach players. For instance when you touch the bridge to walk over it, you will keep going, then BAM it'll snap your player back to the end of the bridge because it has finally synced your player with the server. This is fairly annoying, imo.
The only way to resolve this would to be able to change the layers of players themselves. |
|
|