![]() |
The Z-Axis
Ok, I know how to set a player's z (playerz = ect), but I have no Idea how to set an NPC's z coordinate!
z is stored as a normal variable (like i, a, m, n...). npcs[i].z doesnt work either. there is one command I am curious about, but i think it has to do with gmaps... setz real,real,real,real,real,real,real,real; Is there a way to set an NPC's z? And what exactly does setz do, because it's not explained in newfeatures, or listed anywhere that I know of. Thanks for your help :) ~War Lord Mgp2 |
Re: The Z-Axis
Quote:
Jagen: setz x,y,width,height,a,b,c,d; sets the height of the positon at the x and y your choose, a b c d are the heights of the corners, after you use setz, use updateterrain (kindof like updateboard) |
yay
Thank you for your help. I will Try these out.
But, basically what you are saying, this is for the tiles themselves, not the npcs? correct? |
Re: yay
Quote:
Jagen: yes, it sets the actual height of a part of a terrain (it only works when a terrain has been loaded I think) |
well...
I dont have any terrain to upload, lol...and, my main question hasnt been solved yet :(.
The Z axis for NPCs...is there one? If so, how do you set it? Thanks though, Jagen. |
Re: well...
Quote:
Jagen: NPC Code: That should work fine, just say z then a number |
hmmm
that looks like it would just set a value for z. Does that pertain to the NPC's Z-Axis though?
|
Ummmm...
setz is for terrain, not for npcz... don't worry about z axis yet man... |
well
The reason I want to know how to change an NPCs axis is because of the shoot command.
To make that go above walls on a non terrain type levels, you have to set the z above 3, and the NPC will not be triggered unless it's at the same z height. So, that is why I need to know ;). would updating the terrain change the height of the NPC that rests on it? Thanks. |
Re: well
Quote:
|
Re: Re: well
Quote:
Its not a hard command, dang, its described in newfeatures2002.txt, duh! |
umm
I tried it. Doesnt work for me :(.
Maybe my version is outdated. I'm gonna go see if there is a new dl. |
Wait...
The z axis is a specefic point of elevation on the terrain ? |
You can also sort of simulate it by just subtracting the height you want from the NPCs Y and then customly drawing the shadow at it's actual location, though it'd normally still block at the new space you put it, and the 3d terrain likes messing that up.
Another easier way would just making a new gani, though that'd still be a pain since I believe variable sprite locations per frame still aren't possible. Anyway the subtracting from y trick does work for showimg, which is quite handy. |
o_O! I've used a Z axis b/4 in Geometry, but didn't realize it could be used in Graal. I noticed that G2k2 seemed to have 3d terrain. That is SUPER leet0, i'm gonna have to try that out... hrm... should the terrain file just be a gif of any size, or does a 3d terrain file need to take up an entire level?? I'll have to get some GATs I know to make some so I can play around with it. Bring a whole new look to Anarchy!
---Shifter |
| All times are GMT +2. The time now is 06:50 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.