GetColor

Return object color property. If color = 0, than mean Object will have default color(s).

Pascal Syntax:

function GetColor(ObjID : Cardinal) : Word;

Pascal Example:

      tmpcolor := GetColor(tmpid); 
      case tmpcolor of 
        $0000 : tmpname := ' a logs'; 
        $07EC : tmpname := ' amarant logs'; 
        $0481 : tmpname := ' frozen logs'; 
        $0497 : tmpname := ' sandwood logs'; 
        $0488 : tmpname := ' oak logs'; 
        $0480 : tmpname := ' ice logs'; 
        $0497 : tmpname := ' sandwood logs'; 
        $049F : tmpname := ' mouldy logs';   
        $0487 : tmpname := ' elven logs'; 
        $0498 : tmpname := ' angelic logs'; 
        $049F : tmpname := ' mouldy logs'; 
        $0485 : tmpname := ' obsidian logs'; 
        $0482 : tmpname := ' ghostwood logs'; 
        $0514 : tmpname := ' solar logs';
        else
          tmpname := ' unknown logs'; 
      end; 

Python Syntax:

def GetColor(ObjID): --> ushort