![]() |
And Now Triggerclient not working?
This basically has to do the same thing with my last thread, in which I got a working answer too. Almost everything inside the system I'm making is serverside. The only Clientsided part needed triggeraction refuses to work inside the class apparently. And so I'm forced to use triggerclient.
Weapon: PHP Code:
PHP Code:
PHP Code:
I know for a fact, the player has the weapon and the proper account is being echoed to RC before the trigger. What's the dealio bro? :O |
Only problem I see is:
PHP Code:
PHP Code:
|
Novo, those should do exactly the same.
What if you use "gui" instead of "weapon". I can't remember what the difference is. |
Quote:
|
Quote:
|
Well, Chompy actually figured the problem out. The echo clientside wasn't working therefore leading me to believe the triggerclient wasn't working even using with() (which we ended up using :p).
So it works now, thanks anyway guys. :D |
Using with on a player is kinda different because it changes the calling player rather than change object scope, thats how I think of it. Leftovers from GS1 or so. I always use with for changing the calling player.
|
Quote:
Quote:
You use with() only when you're trying to call a function to a player that is not a player function. For player functions, you do obj.function, which in this case plyr.triggerclient() would be correct. |
I've always done plyr.triggerclient(). Works in for (pl : players) as well on the pl object.
|
Quote:
I believe Graal considers the dot no different than with, it works different ways depending on what you use with it. |
Indeed. The only trigger functions within a player object is trigger() :D
|
Quote:
|
I'm not sure..the only inheritance for Tserverplayer that I can find ont he wiki is tganiobject :x. I could only find the clientside reference though...
|
It all roots down to TGraalVar though.
|
triggerclient() is both a function of the player and a global function (the global function is automatically redirecting to player.triggerclient()). There are a few other functions like setlevel2() which are the same.
|
| All times are GMT +2. The time now is 08:16 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.