Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-03-2005, 08:24 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
GS2: player.level issues

It appears that the player.level variable is getting trashed by having the wrong object type.

In Control-NPC (possibly other DB-NPCs too) and Weapons:

HTML Code:
sendToNC(objecttype(player.level));
gives: TServerNPC

In a player.join()'d class:

HTML Code:
sendToNC(objecttype(player.level));
gives: TServerPlayer


In all cases
HTML Code:
sendToNC(player.level.name);
gives the correct name of the level.
Reply With Quote
  #2  
Old 06-03-2005, 12:29 PM
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
must be player.level.objecttype(), otherwise it is calling this.objecttype() and is ignoring the parameters
Reply With Quote
  #3  
Old 06-03-2005, 08:12 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by Stefan
must be player.level.objecttype(), otherwise it is calling this.objecttype() and is ignoring the parameters
o.O

Why doesn't it cause an error?! Rah! Rah! Rah!

Also, that's not how it was documented in the docus

Oh well.
Reply With Quote
Reply


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 11:02 PM.


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