[CLIENT BUG] Enter Vehicles with attached Objects
#1

Hey,

I found a little bug: The player wont enter a vehicle if it has an object attached to itself. It just runs from door to door and back, "thinking" that the way is blocked. When removing the object it works fine. Here is the code:

PHP Code:
            SetPVarInt(playerid,"MyFPObject",CreateObject(playerid,19300,0,0,0,0,0,0));
            
AttachObjectToPlayer(GetPVarInt(playerid,"MyFPObject"),playerid,0,0,0.7,0,0,0); 
Reply
#2

I think you need to make your script remove the objects upon entering a car, but anyway, I swear i've entered a vehicle before without such measures.
Reply
#3

It's because the object has collision.
Reply
#4

Quote:
Originally Posted by freddy smyth
View Post
I think you need to make your script remove the objects upon entering a car, but anyway, I swear i've entered a vehicle before without such measures.
Did you have object 19300 attached to the player?
Reply
#5

If you want a tip, use the object model 1007, it's non-solid and invisible.
Reply
#6

Thank you very much, problem solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)