Posts: 556
Threads: 21
Joined: Feb 2008
Reputation:
0
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?
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
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.
Posts: 556
Threads: 21
Joined: Feb 2008
Reputation:
0
so the player is the axis and not the map?
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
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)