SA-MP Forums Archive
/cage issues with Z pos - 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: /cage issues with Z pos (/showthread.php?tid=383888)



/cage issues with Z pos - WildCat - 09.10.2012

Quote:

Cage1[playerid] = CreateObject(985, X, Y+4, Z, 0.0, 0.0, 0.0);
Cage2[playerid] = CreateObject(985, X+4, Y, Z, 0.0, 0.0, 90.0);
Cage3[playerid] = CreateObject(985, X-4, Y, Z, 0.0, 0.0, 270.0);
Cage4[playerid] = CreateObject(985, X, Y-4, Z, 0.0, 0.0, 180.0);
Cage5[playerid] = CreateObject(985, X, Y, Z-1, 0.0, 0.0, 0.0);
Cage6[playerid] = CreateObject(985, X, Y, Z+4, 0.0, 0.0, 0.0);


^As you can see, the top and bottom gates arent where they are supposed to be!

What on earth do I put in Cage5 and Cage6 so the gate will stay where it should!?
I've tried so many things(I set it both to 0.0 after I gave up )! It's really pissing me off haha!

Thanks!!


Re: /cage issues with Z pos - Red_Dragon. - 09.10.2012

What do you mean to stay as it supposed to be ? explain more please


Re: /cage issues with Z pos - WildCat - 09.10.2012

Well, it should be directly above the player and directly below, but as you can see it goes a bit to the side so the player could jump down from it if he was caged on a rooftop etc. It just isn't positioned correctly


Re: /cage issues with Z pos - zT KiNgKoNg - 09.10.2012

Try putting - or + next to the next example zpos[target]-1


Re: /cage issues with Z pos - WildCat - 09.10.2012

Tried it.
I was just hoping that someone here had done this in the past and knew how to position them properly.


Re: /cage issues with Z pos - WildCat - 10.10.2012

Anyone?