Object is removed after it is set - 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: Object is removed after it is set (
/showthread.php?tid=665256)
Object is removed after it is set -
Dolke - 27.03.2019
Hello I have big problem with SetPlayerAttachedObject.
After I set it, it is removed almost instantly,about one second after it is set up.
Here is the code for debug.
Code:
YCMD:edit(playerid, params[], help)
{
SetPlayerAttachedObject(playerid, 0, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210);
//EditAttachedObject(playerid, 0);
return 1;
}
Re: Object is removed after it is set -
Heress - 27.03.2019
Quote:
Originally Posted by Dolke
Hello I have big problem with SetPlayerAttachedObject.
After I set it, it is removed almost instantly,about one second after it is set up.
Here is the code for debug.
Code:
YCMD:edit(playerid, params[], help)
{
SetPlayerAttachedObject(playerid, 0, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210);
//EditAttachedObject(playerid, 0);
return 1;
}
|
Search in your gamemode "RemovePlayerAttachedObject", maybe one of them is in timer?