How To Attach object to Player to all player see? - 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: How To Attach object to Player to all player see? (
/showthread.php?tid=342555)
How To Attach object to Player to all player see? -
Azazelo - 14.05.2012
I want to attach object to player and to make all other player see object?
I try to use :
Код:
new Float:X, Float:Y, Float:Z;
new myobject;
GetPlayerPos(playerid, X, Y, Z);
myobject = CreatePlayerObject(playerid, 19371, X, Y, Z+0.5, 0.0, 0.0, 0.0, 300.0);
SetPlayerObjectMaterial(playerid, myobject, 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);
Problem with above code : "Other player`s not see object"
I try this :
Код:
new myobject;
myobject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(myobject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
Problem with above code :"Player camera is very weird acting and
Код:
SetCameraBehindPlayer(playerid);
not helping to restore camera in normal"
Question : Is it possible to make object attached to player to be visible to all other player without camera problem?
Re: How To Attach object to Player to all player see? -
Ballu Miaa - 14.05.2012
Quote:
Originally Posted by Azazelo
Question : Is it possible to make object attached to player to be visible to all other player without camera problem?
|
Answer: Yes it is possible.
Re: How To Attach object to Player to all player see? -
Azazelo - 14.05.2012
How ?? I try to use CreateObject with AttachObjectToPlayer and for AttachPlayerObject wiki samp say is only player able to see it and no one else ?
I try to mix those function but not as i expect ?
I need just one link to exp ?
Or name of function to use ?