EditObject on Streamer Objects? - 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: EditObject on Streamer Objects? (
/showthread.php?tid=354934)
EditObject on Streamer Objects? -
ReneG - 28.06.2012
Maybe I missed something somewhere, but I was working on a script to edit ATM's and noticed that EditObject doesn't support Streamer objects.
Example.
pawn Код:
new object;
public OnGameModeInit()
{
object = CreateDynamicObject(2942, 0, 0, 2, 0, 0, 0, _, _, _);
return 1;
}
CMD:obj(playerid, params[])
{
EditObject(playerid, object);
return 1;
}
Only works with non-streamer objects.
Re: EditObject on Streamer Objects? -
God'Z War - 28.06.2012
Try this
Код:
new object;
public OnGameModeInit()
{
object = CreateDynamicObject(2942, 0, 0, 2, 0, 0, 0, _, _, _);
return 1;
}
CMD:obj(playerid, params[])
{
EditDynamicObject(playerid, object);
return 1;
}
Re: EditObject on Streamer Objects? -
ReneG - 28.06.2012
Completely overlooked the streamer documentation. Thanks
Re: EditObject on Streamer Objects? -
God'Z War - 28.06.2012
Your Welcome