Attach rock in hands
#6

Create yourself a quick editor, like this.

pawn Код:
CMD:spawnobject(playerid,params[])
{
    new obj = SetPlayerAttachedObject(playerid,0,model,puthandbone);
    EditPlayerObject(playerid,obj);
}
public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
{
    if(response)
    {
        printf("%f,%f,%f,%f,%f,%f,%f,%f,%f",fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);
    }
    else
    {
        SendClientMessage(playerid,-1, "Attached object edition not saved.");
    }
    return 1;
}
Search the wiki for the bone ids and when you've done editing it click on that SAVE icon ingame you'll see the coordinates printed in your console, copy them and go to your SetPlayerAttachedObject, paste the coordinates there.
Reply


Messages In This Thread
Attach rock in hands - by Sn4ke2 - 24.07.2015, 20:06
Re: Attach rock in hands - by davve95 - 24.07.2015, 23:18
Re: Attach rock in hands - by Sn4ke2 - 25.07.2015, 11:36
Re: Attach rock in hands - by trablon - 25.07.2015, 11:43
Re: Attach rock in hands - by Sn4ke2 - 25.07.2015, 12:03
Re: Attach rock in hands - by DaniceMcHarley - 25.07.2015, 12:15

Forum Jump:


Users browsing this thread: 1 Guest(s)