Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   GuiShowImgCtrl and playerlook (https://forums.graalonline.com/forums/showthread.php?t=70019)

Novo 11-11-2006 08:47 AM

GuiShowImgCtrl and playerlook
 
... Yea. Doesn't work.

PHP Code:

//#CLIENTSIDE
function onCreated()
  {
  new 
GuiShowImgCtrl()
    {
    
ani "idle";
    
playerlook true;
    }
  } 

Doesn't work.

Admins 11-11-2006 03:04 PM

Eventually it doesn't work because the gui-control is not really connected to the player, it should not be hard to copy the player-attributes manually though like

PHP Code:

playerlook false;
actor.head player.head;
actor.body player.body;
for (
i=1i<=30i++)
  
actor.attr[i] = player.attr[i];
for (
i=0i<5i++)
  
actor.colors[i] = player.colors[i]; 


Novo 11-11-2006 09:15 PM

Quote:

Originally Posted by Stefan (Post 1241895)
Eventually it doesn't work because the gui-control is not really connected to the player, it should not be hard to copy the player-attributes manually though like

PHP Code:

playerlook false;
actor.head player.head;
actor.body player.body;
for (
i=1i<=30i++)
  
actor.attr[i] = player.attr[i];
for (
i=0i<5i++)
  
actor.colors[i] = player.colors[i]; 


I know, however... If the attributes changes, the GuiShowImgCtrl doesn't change with it... That's the more complicated part.


All times are GMT +2. The time now is 04:18 AM.

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