SA-MP Forums Archive
SetPlayerAttachedObject - 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: SetPlayerAttachedObject (/showthread.php?tid=457334)



SetPlayerAttachedObject - Lucky™ - 11.08.2013

Hey guys, got some small problem.

Let's say, when someone choose some class when login that player will get some objects [SetPlayerAttachedObject], but the problem is some of those objects won't show up.

If there are 7 objects, just 3-4 will show. Any idea how to fix that?


Re: SetPlayerAttachedObject - cray1100 - 11.08.2013

Maybe, there is a limit, let me check...


Re: SetPlayerAttachedObject - Lucky™ - 11.08.2013

Quote:
Originally Posted by cray1100
Посмотреть сообщение
Maybe, there is a limit, let me check...
I've checked something in SA-MP Wiki and found this

https://sampwiki.blast.hk/wiki/Limits

Attached player objects - 10 [maximum - 0.3x]

Still I can't show up more than 4-5 objects


Re: SetPlayerAttachedObject - cray1100 - 11.08.2013

Hmm... I dont see why, yet someone else might, anyone got any ideas? All your objects, are they attached to the same body part...?


Re: SetPlayerAttachedObject - Lucky™ - 11.08.2013

Quote:
Originally Posted by cray1100
Посмотреть сообщение
Hmm... I dont see why, yet someone else might, anyone got any ideas? All your objects, are they attached to the same body part...?
Nope, They are attached to different different parts.


Re: SetPlayerAttachedObject - BullseyeHawk - 11.08.2013

What about the index id's? Do you use different indexes for each attached object?


Re: SetPlayerAttachedObject - Lucky™ - 11.08.2013

Quote:
Originally Posted by BullseyeHawk
Посмотреть сообщение
What about the index id's? Do you use different indexes for each attached object?
Yeah, I'm using different indexes


Re: SetPlayerAttachedObject - Psymetrix - 11.08.2013

Post your code that attaches the object.


Re: SetPlayerAttachedObject - Lucky™ - 11.08.2013

Quote:
Originally Posted by Psymetrix
Посмотреть сообщение
Post your code that attaches the object.
pawn Код:
SetPlayerAttachedObject(playerid, 0, 19314, 2, 0.1089, 0.0000, 0.0000, -5.4999, -8.3000, -2.8999, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 1, 19515, 1, 0.0740, 0.0509, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 2, 19514, 2, 0.1000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 3, 2041, 6, 0.1790, 0.0000, 0.0819, 4.2999, -0.8999, 82.6000, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 4, 2041, 5, 0.2440, 0.0179, -0.0419, 134.5999, 0.0000, 84.9000, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 5, 2590, 1, -0.5350, -0.1229, -0.1779, 0.0000, -107.1999, 3.4999, 1.0000, 1.0000, 1.0000, 0, 0);
SetPlayerAttachedObject(playerid, 6, 2589, 1, -4.7890, -0.0979, 0.3429, 0.0000, -86.7000, 0.0000, 1.0000, 1.0000, 1.0000, 0, 0);}
^^ Some of them won't show up.


Re: SetPlayerAttachedObject - Lucky™ - 11.08.2013

B-BRING
U-UP
M-MY
P-POST