Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   hidelocal troubles (https://forums.graalonline.com/forums/showthread.php?t=134263692)

Trakan 06-28-2011 06:57 PM

hidelocal troubles
 
I have a problem , the image doesn't disappear with hildelocal(); !

My script :
PHP Code:

// NPC made by Trakan
if (playertouchsme) {
  
addweapon Hats/Hat0;
  
hidelocal();



Crow 06-28-2011 07:01 PM

Not even sure if it's still supported. You could do something like this:
PHP Code:

function onPlayerTouchsMe()
  
player.addWeapon("Hats/Hat0");

//#CLIENTSIDE
function onPlayerTouchsMe()
  
this.hide(); 

Edit: Tag failure. Sorry.
Editē: Typo. **** me.

cbk1994 06-28-2011 09:50 PM

Quote:

Originally Posted by Crow (Post 1656622)
Not even sure if it's still supported. You could do something like this:
PHP Code:

function onPlayerTouchsMe()
  
player.addWeapons("Hats/Hat0");

//#CLIENTSIDE
function onPlayerTouchsMe()
  
this.hide(); 

Edit: Tag failure. Sorry.

Typo, should be player.addWeapon :).

Crow 06-28-2011 10:31 PM

Thanks :)


All times are GMT +2. The time now is 03:49 PM.

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