Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   setZ(); (https://forums.graalonline.com/forums/showthread.php?t=78417)

Angel_Light 01-21-2008 04:20 AM

setZ();
 
Wiki has very limited documentation on this and doesn't really give a good example. Can someone please enlighten me on how to use this?

cbk1994 01-21-2008 05:54 AM

Quote:

Originally Posted by Angel_Light (Post 1370865)
Wiki has very limited documentation on this and doesn't really give a good example. Can someone please enlighten me on how to use this?

Would not something like player.z = 6; solve your problem?

I'm not exactly sure what setZ does, you could mess around with it. Sounds like it would just change player.z?

Inverness 01-21-2008 06:42 AM

TServerLevel.setz(int, int, int, int, float, float, float, float);

I imagine its for changing terrain height.

Angel_Light 01-21-2008 06:45 AM

It is for changing the Level Z (as like GK Levels) I am wondering how to use the parameters for it correctly

setZ( x, y, width, height, a, b, c, d);

The first four are pretty much self explaintory it is the a b c d ones ( square corners?) that I need help with.

Admins 01-21-2008 11:35 AM

Yes a, b, c, d are the heights of the four corners. Afterwards call updateterrain() (everything on client-side). Support for changing the heights on server-side is planned but not added yet.

Angel_Light 01-21-2008 04:30 PM

awesome, got it. Thanks Stefan. :P

Cubical 03-09-2010 08:17 AM

Quote:

Originally Posted by Stefan (Post 1370934)
Yes a, b, c, d are the heights of the four corners. Afterwards call updateterrain() (everything on client-side). Support for changing the heights on server-side is planned but not added yet.

Sorry to bump an old post but was this ever added?

coreys 03-10-2010 01:35 AM

Terrain deformation would be pretty awesome ;o

Crow 03-10-2010 02:11 PM

Quote:

Originally Posted by coreys (Post 1561478)
Terrain deformation would be pretty awesome ;o

Think 'nades and crazy explosions forming the terrain. Awesome!

Cubical 03-10-2010 03:23 PM

Quote:

Originally Posted by Crow (Post 1561588)
Think 'nades and crazy explosions forming the terrain. Awesome!

That's what I wanted to do but only to find out that you would have to trigger setz to all the players in the level to do it right now;[

Crow 03-10-2010 03:27 PM

Quote:

Originally Posted by Cubical (Post 1561597)
That's what I wanted to do but only to find out that you would have to trigger setz to all the players in the level to do it right now;[

Doesn't seem like a big issue, give it a try!

Cubical 03-10-2010 03:29 PM

Wouldn't that cause lag?

Crow 03-10-2010 04:38 PM

Quote:

Originally Posted by Cubical (Post 1561600)
Wouldn't that cause lag?

I doubt you'll have one explosion per second or similar. Give it a try, should be lagless if you don't mess up the code in some way or another.

Tigairius 03-10-2010 06:46 PM

Quote:

Originally Posted by Cubical (Post 1561597)
That's what I wanted to do but only to find out that you would have to trigger setz to all the players in the level to do it right now;[

As long as you're not doing it in a fast loop it should be fine.

Cubical 03-10-2010 11:07 PM

Quote:

Originally Posted by Tigairius (Post 1561623)
As long as you're not doing it in a fast loop it should be fine.

I was doing a scheduleevent in a 0.05 loop and it lagged the hell out of me, but then again I was on 2 accounts on testbed so I'm not sure if that factors into it.


All times are GMT +2. The time now is 05:43 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.