View Single Post
  #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