22.03.2010, 20:19
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 :/
NOTE: if I attach the objects to myself under onplayerspawn, it DOES work. So is it impossible to attach objects to NPC's?
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);
}