/cage issues with Z pos
#1

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!!
Reply
#2

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

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
Reply
#4

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

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

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)