Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Detecting A Level's Tile Def (https://forums.graalonline.com/forums/showthread.php?t=134268390)

devilsknite1 07-16-2013 12:19 AM

PHP Code:

//#CLIENTSIDE

function onPlayerEnters() {
  if ( 
isOnMap ) {
    
with player.gmap ) {
      
tilelayers].alpha 0.4;
    }
  }



cbk1994 07-16-2013 12:36 AM

Quote:

Originally Posted by i8bit (Post 1720666)
I have:

PHP Code:

gmap.tilelayers[0].alpha 0.4

But it still doesn't work :/

I don't know if gmap is a magic in-scope variable like level, try using player.gmap (I would also recommend using player.level).

i8bit 07-16-2013 12:12 PM

player.gmap works perfect. thanks cbk ;)


All times are GMT +2. The time now is 05:32 PM.

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