SetPlayerAttachedObject
#1

Hi guys I'm having a problem with SetPlayerAttachedObject

when I use SetPlayerAttachedObject like:

first object = SetPlayerAttachedObject(...);
second object = SetPlayerAttachedObject(...);

It only attach the second object, Why?
Reply
#2

Are you sure you are using different indexes and bone ids?
Reply
#3

My code is like:

OnPlayerUpdate(playerid)
if(pWeapon[3] = 25 &&GetPlayerWeapon(playerid) != 25)
{
SetPlayerAttachedObject(...);//attach shotgun
}
if(pWeapon[4] = 29 &&GetPlayerWeapon(playerid) != 29)
{
SetPlayerAttachedObject(...);//attach mp5
}

but when I have both guns and not holding any of them... It only attach mp5.
Reply
#4

Oh nothing is wrong now, Thanks Rufio I didn't notice of the indexes
Reply
#5

You are welcome.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)