![]() |
showpoly inside class
Hi, I'm making a class to draw basic shapes but it won't draw!
CLASS: player-drawing NPC Code: 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! |
Are you joining the class to the player on clientside or serverside?
|
clientside
|
Quote:
|
Do you see anything in the Scripts tab in the F2 console? Also, try totally quitting your client and restarting it. Player-joined classes on clientside are very touchy.
Quote:
|
Yes, it says:
NPC Code:GraalScript: Function showpoly not found in script of Player Linkishback |
And I call it like this:
WEAPON: -System/Main NPC Code: |
I didn't think displays worked within the player object?
I think you need to have the drawing done within a weapon. It's also not necessary to join the class onPlayerEnters. |
I don't see any real reason why you would want the 'player' object to draw it anyway. I would do something like this:
Weapon: -GUI PHP Code:
PHP Code:
(@"-GUI").showRect(...); |
I didn't know I could link weapons to the player like that! Thanks for the tip! :D
|
Quote:
|
All times are GMT +2. The time now is 03:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.