[Include] APTV - Attach Player To Vehicle
#9

Quote:
Originally Posted by RobinOwnz
Посмотреть сообщение
Why not create an invisible object on the vehicle, where the player can stand on. If he doesn't stand on it then teleport him back..

(explanation asked):
What the include does is SetPlayerPos on a timer, but why don't you use AttachObjectToVehicle to create an invisible object using SetObjectMaterial. With that method you can just use a check if the player is on the invisible object. If he's not, use SetPlayerPos. This way it's a lot more efficienter, doesn't require a lot of SetPlayerPos'es, and would 'smooth' out the whole attaching (as it's pretty much done by the client)..
Great idea, updating
Reply


Messages In This Thread
APTV - No Timers / Proper Attaching ;) - by S0n1COwnsYou - 18.02.2013, 18:16
Re: APTV - Attach Player To Vehicle - by MP2 - 18.02.2013, 18:27
Re: APTV - Attach Player To Vehicle - by TheArcher - 18.02.2013, 18:40
Re: APTV - Attach Player To Vehicle - by S0n1COwnsYou - 18.02.2013, 18:43
Re: APTV - Attach Player To Vehicle - by TheArcher - 18.02.2013, 19:19
Re: APTV - Attach Player To Vehicle - by Rapgangsta - 18.02.2013, 21:28
Re: APTV - Attach Player To Vehicle - by TheArcher - 20.02.2013, 17:59
Re: APTV - Attach Player To Vehicle - by rbN. - 20.02.2013, 21:16
Re: APTV - Attach Player To Vehicle - by S0n1COwnsYou - 21.02.2013, 09:22

Forum Jump:


Users browsing this thread: 1 Guest(s)