SA-MP Forums Archive
Set right position SetPlayerAttachedObject weapon hands - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Set right position SetPlayerAttachedObject weapon hands (/showthread.php?tid=632919)



Set right position SetPlayerAttachedObject weapon hands - idegod - 22.04.2017

I'm trying to change weapon color, and thats the way i found:
Код:
SetPlayerAttachedObject(playerid, 2, GetWeaponModel(wp2), 8, -0.079999, -0.039999, 0.109999, -90.100006, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000,0xFFFF1493,0xFFFF1493);
But it's not totally right position and players can see how wrong is it...



Anybody know how to set weapon in right position?


Re: Set right position SetPlayerAttachedObject weapon hands - ISmokezU - 22.04.2017

Increase the size with the editor until it covers it fully.


Re: Set right position SetPlayerAttachedObject weapon hands - pedrotvr - 23.04.2017

i've liked the idea, but it was too hard to set the right position
EditObject is the best way?
Anybody know how to set this pos? Should help a lot people


Re: Set right position SetPlayerAttachedObject weapon hands - weex - 23.04.2017

Interesting i'll use it, if i can fix i share here...
But i have a question...
There is a way to set tint in objects on ground like this?
PHP код:
DropObject[i] = CreateDynamicObject(GetGunObjectID(GunID), XYZ-180.00.00.0world); 



Re: Set right position SetPlayerAttachedObject weapon hands - AndreiWow - 23.04.2017

Why don't you guys use an attached object editor like: https://sampforum.blast.hk/showthread.php?tid=209234

Go in game and hold the gun then adjust the object on the hand properly, it will be easier.