How to attach PlayerObject to Player -
cada - 12.02.2018
Hi, everyone.
I want to make the object that created by CreatePlayerObject function, attach to other player.
i mean, many players can attach PlayerObject to one player (this is NPC, and NPC don`t need PlayerObject)
this is my code.
Код:
NPCInfo[npcid][Mark][playerid] = CreatePlayerObject(playerid,18631, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
SetObjectMaterial(NPCInfo[npcid][Mark][playerid], 0, 1239, "icons6", "lyellow32", 0xFFFFFFFF);
AttachObjectToPlayer(NPCInfo[npcid][Mark][playerid], npcid, 0.0, 0.0, 1.2, 0.0, 0.0, 0.0);
this code is not working.
plz help me!
sorry for my bad english :3
Re: How to attach PlayerObject to Player -
PepsiCola23 - 12.02.2018
PHP код:
CreatePlayerObject
creates an object which will be visible to only one player.
so use
instead or
PHP код:
CreateDynamicObject
.
Re: How to attach PlayerObject to Player -
cada - 12.02.2018
@PepsiCola23
If using CreateObject, all players can see the object.
i want to make object per player. just one player can see the object.
Re: How to attach PlayerObject to Player -
cada - 12.02.2018
@PepsiCola23
If using CreateObject, all players can see the object.
i want to make object per player. just one player can see the object.
Re: How to attach PlayerObject to Player -
Sew_Sumi - 12.02.2018
You'll want to look at the streamer for this, because just looking at
https://sampwiki.blast.hk/wiki/AttachPlayerObjectToPlayer it doesn't look promising.
Streamer will have all the capability you want.
Re: How to attach PlayerObject to Player -
Mugala - 12.02.2018
you have to use an AttachPlayerObjectToPlayer instead of AttachObjectToPlayer
https://sampwiki.blast.hk/wiki/AttachPlayerObjectToPlayer
Re: How to attach PlayerObject to Player -
Sew_Sumi - 12.02.2018
Quote:
Originally Posted by Mugala
|
Removed in 0.3....... Hence why I said about it not looking promising.
Needs to use the streamer.