AttachObjectToPlayer - 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: AttachObjectToPlayer (
/showthread.php?tid=289267)
AttachObjectToPlayer -
zxc1 - 10.10.2011
I have this code:
pawn Код:
new Float:X,Float:Y,Float:Z;
new moneybag;
GetPlayerPos(playerid,X,Y,Z);
moneybag = CreateObject(1550,X,Y,Z,0.0, 0.0, 96.0);
AttachObjectToPlayer( moneybag, playerid, 0.0, -0.4, 0.3, 0, 1.5, 2 );
But when the object appears it's makes the camera go closer to the player and I can't see anything, I mean when you press V in GTA SA to change camera view it's not helping...
Re: AttachObjectToPlayer -
CyNiC - 11.10.2011
Use SetPlayerAttachedObject instead of AttachObjectToPlayer.
With this FS you can get the coords and see some examples of function params:
https://sampforum.blast.hk/showthread.php?tid=182317
Re: AttachObjectToPlayer -
zxc1 - 11.10.2011
WoW Thanks man!