Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-30-2011, 06:28 PM
Linkishback Linkishback is offline
Banned
Linkishback's Avatar
Join Date: Jan 2005
Location: The Netherlands
Posts: 34
Linkishback is on a distinguished road
Send a message via AIM to Linkishback Send a message via MSN to Linkishback
showpoly inside class

Hi, I'm making a class to draw basic shapes but it won't draw!

CLASS: player-drawing
NPC Code:

//#CLIENTSIDE
public function showRect(id, x, y, width, height) {
showpoly(id, {x, y, x+width, y, x+width, y+height, x, y+height});
player.chat = "Nice rectangle!";
}



I call it by joining the class to the player and calling:

WEAPON: Gui
NPC Code:
player.showRect(201, 0,0,200,200);



Am I doing something wrong, or is it not posible to do this with a class?

Thanks!
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:33 PM.


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