Attatch Object to player
#1

Okay, i'v seen somewhere the object of a gun on someones back, which is obviously attatchobjecttoplayer, but i'm wondering, how do you get the co-ordinates? There's no equivalent of MTA or breadfish etc for attatching objects, so how would I go about attatching a katana object to someones back?
Reply
#2

Predominantly through trial and error. AttachObjectToPlayer gets the players position at a given time, and offsets the object in the way you want it to. So to get the object behind the player you'd need to set some negative y value, and maybe a bit of positive z value. As you want the gun to be central you probably don't need to mess with the x value. As for the rotation It'd be a case of trial and error.
Reply
#3

so the player is the axis and not the map?
Reply
#4

With that thingy yes, Y is infront/behind, x is left/right and z is up/down (I think, X and Y might be flipped)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)