Attack Material Object to player - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Attack Material Object to player (
/showthread.php?tid=550434)
Attack Material Object to player -
s0ZNIz - 12.12.2014
hey,
im trying attach material object to player
this is my code:
PHP код:
CMD:sguitar(playerid,params[])
{
test20[playerid] = CreatePlayerObject(playerid,19319, 848.2437, -1188.0800, 16.9766, 0.00000, 0.00000, 0.00000);
SetPlayerObjectMaterial(playerid, test20[playerid], 0, 19129, "dancefloors", "DanceFloor1", 0);
AttachObjectToPlayer(test20[playerid], playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
return 1;
}
It creates the object in the X Y Z , but not attaching it to the player..
Re: Attack Material Object to player -
Pottus - 12.12.2014
You can't attach playerobjects to player.
https://sampwiki.blast.hk/wiki/AttachPlayerObjectToPlayer
Warning: This function was removed in SA-MP 0.3.
ALTERNATIVE: SetPlayerAttachedObject
Which was a very poor idea to remove this feature since it is indeed useful for certain things.
Re: Attack Material Object to player -
stabker - 26.01.2015
delete