streamer by Incognito weird act - 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: streamer by Incognito weird act (
/showthread.php?tid=349376)
streamer by Incognito weird act -
Azazelo - 08.06.2012
When i try to rotate streamer created object , he just vanish(gone)....
Code:
stock test(objectid,rot)
{
new Float:x,Float:y,Float:z;
if (IsValidDynamicObject(objectid))
{
GetDynamicObjectRot(objectid,x,y,z);
z = z - rot;
SetDynamicObjectRot(objectid,x,y,z);
}
}
is this correct way to do it ?
Can any one test this code for me if you using a stremer ?
Re: streamer by Incognito weird act -
Yuryfury - 08.06.2012
I'm actually not sure as to whether or not pawno/samp understands negative angles.
Might also be the object. Landing strips for example are invisible on the opposite side and palm trees can not be rotated on a certain axis.
Re: streamer by Incognito weird act -
MP2 - 08.06.2012
test(objectid,rot)
->
test(objectid, Float:rot)
Re: streamer by Incognito weird act -
Azazelo - 08.06.2012
Code:
stock test(objectid)
{
new Float:x,Float:y,Float:z;
if (IsValidDynamicObject(objectid))
{
GetDynamicObjectRot(objectid,x,y,z);
SetDynamicObjectRot(objectid,x,y,z);
}
}
Same stuff just object vanish ....