Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-04-2007, 01:15 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Gani script question

Hello,

I'm using player.attr to attach a scripted gani to players.

In the gani the player object refers to the player to which the gani belongs. This is fine, but how can I access the player of the person viewing the gani?

For example, the gani shows an image but i dont want the person to see the image attached to themselves.

I want to do something like:
PHP Code:
showimg(200,.....);
if (
client.player == player) {
findimg(200).alpha 0;

Where client.player is the reference to the player viewing the gani rather than the player who has the gani set in player.attr.
__________________

Coming soon (Hopefully:P)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:25 AM.


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