Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Blocking triggerserver (https://forums.graalonline.com/forums/showthread.php?t=134257275)

coreys 12-13-2009 01:22 AM

Blocking triggerserver
 
It would be very nice to have a blocking version of triggerserver that could wait for a return from onActionServerside. Often times triggering back to the client becomes a really roundabout, inconvenient way of designing your code. I want something like this:
PHP Code:

function onActionServerside()
{
  return 
"test";
}

//#CLIENTSIDE
function onCreated()
{
  
temp.result blockedtrigger("gui"this.name);
  
player.chat result// Should be "test"


Note:
I don't mean something like waitfor() to check when the client is triggered, that can still lead to splitting up code into unorganized places and is just not very convenient.

fowlplay4 12-13-2009 01:30 AM

Have you tried this?

http://forums.graalonline.com/forums...ad.php?t=73564

coreys 12-13-2009 02:36 AM

Ah, no, I hadn't! :O
Inverness, you devil, you


All times are GMT +2. The time now is 09:27 AM.

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