View Single Post
  #1  
Old 12-13-2009, 01:22 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
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.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote