SetPlayerAttachedObject
#1

Hi all,i have some problem with SetPlayerAttachedObject,when i call this function with any object it will not show that object.
Reply
#2

Show the code? you made.
Reply
#3

any object i mean.
Reply
#4

Did you created the object first?
Reply
#5

I think that for SetPlayerAttachedObject is no need to createobject first.
Reply
#6

Show me what you tried? So i can suggest something.
You need different index ids if you have more than 1 object attached,
Reply
#7

i dont have any object attached.

i reset all attach slot and again it dont shows up

SetPlayerAttachedObject(playerid, 0, 333, 6);
Reply
#8

try this example i got from a tutorial see if it works?

pawn Код:
CMD:redcone(playerid, params[])
{
           SetPlayerAttachedObject(playerid,3, 1238, 6); // Bone 6 means Right handed
           SendClientMessage(playerid, COLOR_GREEN, "You are holding a Redcone.");
           return 1;
}
or strcmp

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   if(!strcmp(cmdtext, "/redcone", true))
    {
        SetPlayerAttachedObject(playerid, 3, 1238, 6);
        SendClientMessage(playerid, COLOR_GREEN, "You are holding a Redcone");
        return 1;
     }
     return 0;
}
Reply
#9

nothing happens this is so fucked.
Reply
#10

How much objects do you have in your map?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)