![]() |
GS2: add player.triggeraction?
HTML Code:
GraalScript: Function triggeraction not found at line 4 of player in script of RickI can't triggeraction specific clients... this is limiting my de-lag of scripts. |
I found a hack to get around this limitation:
(in a player.join() class): HTML Code:
public function yourFunction(arg1, arg2) |
Did you try player.trigger(..)?
|
with(this)?? x-x
You need to use the "clientside" action like in old script, but it is planned that the triggerserver/triggerclient functions like in Graal3D are added to Graal2D to make it simplier. |
Quote:
|
Quote:
What do you mean that I need to use the clientside action? I already am, it's just that you can't do something like this from GScript2 right now: HTML Code:
temp.player = findplayer("SomePlayer");HTML Code:
temp.player = findplayer("SomePlayer"); |
Quote:
|
Quote:
|
Hmmm the player join stuff has just been added some weeks ago, I guess it should also set the "current player" if you call a script function for the player itself. The "current player" is used for old scripting functions with side effects - triggeraction is a function of npcs, since it is sending the trigger to near players in the current level of the npc, but if the action is "clientside" then it is only sent to the "current player". Adding a triggerclient function for players would make sense here I guess.
|
There also seems to be an issue with sending clientside triggeractions during onCreated() of weapons or the player.join()'d class. Is it possible you could fix that?
|
| All times are GMT +2. The time now is 08:35 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.