Impossible to attach objects to npc's?
#1

I'm trying to attach objects to an NPC but it doesn't work.
It does set the skin and all but the objects are just in their spawn place :/

pawn Код:
if(!strcmp(npcname, "Johnny_Blaze", true))
    {
      PutPlayerInVehicle(playerid, Ghostbike, 0);
      SetPlayerColor(playerid, COLOR_WHITE);
      Attach3DTextLabelToPlayer(GhostLabel, playerid, 0.0, 0.0, 0.4);
      SetPlayerSkin(playerid, 181);
      AttachObjectToPlayer(Ghostflame, playerid, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0);
      AttachObjectToPlayer(Ghostsmoke, playerid, 0.0, 0.0, -7.0, 0.0, 0.0, 0.0);
    }
NOTE: if I attach the objects to myself under onplayerspawn, it DOES work. So is it impossible to attach objects to NPC's?
Reply


Messages In This Thread
Impossible to attach objects to npc's? - by Rzzr - 22.03.2010, 20:19
Re: Why doesn't this work? - by Rzzr - 23.03.2010, 08:55
Re: Why doesn't this work? - by adsy - 23.03.2010, 12:40
Re: Why doesn't this work? - by Rzzr - 23.03.2010, 14:00
Re: Why doesn't this work? - by adsy - 23.03.2010, 15:14
Re: Why doesn't this work? - by adsy - 23.03.2010, 23:36
Re: Why doesn't this work? - by Rzzr - 24.03.2010, 07:54
Re: Why doesn't this work? - by adsy - 24.03.2010, 13:12
Re: Why doesn't this work? - by Rzzr - 25.03.2010, 11:11
Re: Impossible to attach objects to npc's? - by adsy - 26.03.2010, 12:40

Forum Jump:


Users browsing this thread: 2 Guest(s)