18.04.2014, 15:12
Where could I find offsets for attaching weapons to a player so they'd look just like "real"? Which dat file should I look at?
// When you attach the Object
new object[MAX_PLAYERS];
object[playerid] = SetPlayerAttachedObject(params);
EditPlayerObject(playerid, object[playerid]);
public OnPlayerEditAttachedObject(playerid, response)
{
if(response)
{
new Float:pos[3];
GetObjectPos(object[playerid], pos[0], pos[1], pos[2]);
printf("Object offset is x = %f | y = %f | z = %f", pos[0], pos[1], pos[2]);
}
}