Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-21-2008, 04:20 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
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?
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 01-21-2008, 05:54 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Angel_Light View Post
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?
__________________
Reply With Quote
  #3  
Old 01-21-2008, 06:42 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
TServerLevel.setz(int, int, int, int, float, float, float, float);

I imagine its for changing terrain height.
__________________
Reply With Quote
  #4  
Old 01-21-2008, 06:45 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
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.
__________________
Deep into the Darkness peering...
Reply With Quote
  #5  
Old 01-21-2008, 11:35 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #6  
Old 01-21-2008, 04:30 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
awesome, got it. Thanks Stefan. :P
__________________
Deep into the Darkness peering...
Reply With Quote
  #7  
Old 03-09-2010, 08:17 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by Stefan View Post
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?
Reply With Quote
  #8  
Old 03-10-2010, 01:35 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Terrain deformation would be pretty awesome ;o
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #9  
Old 03-10-2010, 02:11 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by coreys View Post
Terrain deformation would be pretty awesome ;o
Think 'nades and crazy explosions forming the terrain. Awesome!
__________________
Reply With Quote
  #10  
Old 03-10-2010, 03:23 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by Crow View Post
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;[
Reply With Quote
  #11  
Old 03-10-2010, 03:27 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Cubical View Post
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!
__________________
Reply With Quote
  #12  
Old 03-10-2010, 03:29 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Wouldn't that cause lag?
Reply With Quote
  #13  
Old 03-10-2010, 04:38 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Cubical View Post
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.
__________________
Reply With Quote
  #14  
Old 03-10-2010, 06:46 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by Cubical View Post
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.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #15  
Old 03-10-2010, 11:07 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by Tigairius View Post
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:50 PM.


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