Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   playerlook = true; (https://forums.graalonline.com/forums/showthread.php?t=67098)

Angel_Light 07-01-2006 02:15 AM

playerlook = true;
 
Hi all

okay, i'm messing with the P.E. (Particle Engine) and I came across a action I cant seem to figure out. I looked it up in the wiki and It shed some light but I cant get it to work. It's the 'playerlooks' action and could someone explain it to me thoroughly when the boolean is true or false? Please? :\

Thanks,
Mr. Omega

Novo 07-01-2006 02:33 AM

Quote:

Originally Posted by Angel_Light
Hi all

okay, i'm messing with the P.E. (Particle Engine) and I came across a action I cant seem to figure out. I looked it up in the wiki and It shed some light but I cant get it to work. It's the 'playerlooks' action and could someone explain it to me thoroughly when the boolean is true or false? Please? :\

Thanks,
Mr. Omega

The property 'playerlooks' is for TShowImg_Gani .

When you have a player in a gani, you can set the properties of the TShowimg_Gani to the player looks, or... You can manually set it by having findimg( ganiIndex ).actor.headimg = "head0.png";

The property 'playerlooks' just makes all the properties that of player. ( the current player ) become those of the gani as well.

PHP Code:

...
if ( 
playerlooks )
  {
  
this.actor.headimg player.headimg;
  ...
  for ( 
030++ )
    
this.actor.attr] = player.attr];
  }
... 

Pretty much.

Angel_Light 07-01-2006 02:48 AM

ok, I think I get it. Thanks

EDIT: Maybe not. I have the script where the player chats a phrase. I can get the shadow to show but not the NPC head, body, attr, etc to show. Also in the wiki it says to use projectile.actor. :\

ApothiX 07-02-2006 11:55 PM

You have to set the gani to idle or something, and then set playerlook. I don't think it automatically sets the gani for you.


All times are GMT +2. The time now is 02:18 PM.

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