Fixar objeto -
ipsLuan - 15.08.2014
Eu criei um objeto pra fixar no jogador, mas ele nгo fixa.
Imagens:
http://imgur.com/pypi5mI,Zo57Dv6
Re: Fixar objeto -
Duun - 15.08.2014
cara й so alterar as coordenadas do objeto. tem fs disso ai procura melhor
Re: Fixar objeto -
ipsLuan - 15.08.2014
Quote:
Originally Posted by Duun
cara й so alterar as coordenadas do objeto. tem fs disso ai procura melhor
|
Amigo, eu fiz isso agora, quando o jogador estб parado, o objeto fica normal, mas quando anda o objeto fica desproporcional.
Re: Fixar objeto -
Rodney Francalim - 15.08.2014
Tem que prestar atenзгo no local onde vocк quer fixar o objeto.
Use o SetPlayerAttachedObject
pawn Код:
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ, materialcolor1, materialcolor2);
Em bone vocк coloca a parte do corpo que vocк deseja, no seu caso й o braзo.
https://sampwiki.blast.hk/wiki/Bone_IDs
Re: Fixar objeto -
ipsLuan - 15.08.2014
Quote:
Originally Posted by Rodney Francalim
Tem que prestar atenзгo no local onde vocк quer fixar o objeto.
Use o SetPlayerAttachedObject
pawn Код:
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ, materialcolor1, materialcolor2);
bone, tem que colocar a parte do corpo que vocк deseja, no seu caso й o braзo.
https://sampwiki.blast.hk/wiki/Bone_IDs
|
Existe algum filterscript que faz essa funзгo?
#EDIT
Eu fiz pelo Hold Studio e olha como ficou:
pawn Код:
SetPlayerAttachedObject( playerid, 0, 1210, 1, -0.526161, 0.038554, -0.205889, 83.694702, 86.076675, 13.400418, 1.000000, 1.000000, 1.000000 );
Re: Fixar objeto -
Rodney Francalim - 15.08.2014
Quote:
Originally Posted by xCR7
Existe algum filterscript que faz essa funзгo?
|
Sim:
http://forum.sa-mp.com/showpost.php?...42&postcount=4
Re: Fixar objeto -
ipsLuan - 15.08.2014
Quote:
Originally Posted by Rodney Francalim
|
Como eu havia dito, nгo pegou, porйm eu fiz um pelo Hold Studio.
Cуdigo:
pawn Код:
SetPlayerAttachedObject( playerid, 0, 1210, 1, -0.526161, 0.038554, -0.205889, 83.694702, 86.076675, 13.400418, 1.000000, 1.000000, 1.000000 );
O que posso fazer pra fixar na mгo do jogador?
Re: Fixar objeto -
Rodney Francalim - 15.08.2014
Entгo, tenho quase certeza de que vocк nгo leu o meu primeiro comentбrio.
A resposta ta lб, cara.
Tem que ler.
Re: Fixar objeto -
ipsLuan - 15.08.2014
Jб consegui, valeu.
Re: Fixar objeto -
VeNuZ_ - 15.08.2014
Me arranja o id do objecto ?