2 Replies - 1173 Views - Last Post: 09 March 2013 - 01:55 PM Rate Topic: -----

#1 TrewSx  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 50
  • Joined: 07-June 12

Receive BroadcastMessage in Javascript

Posted 09 March 2013 - 01:38 PM

Hello, could anyone please explain me how to receive message sent on Input.GetButtonUp pls ?

//Send message script
function Update() {
      if(Input.GetButtonUp("someButton"));
      BroadcastMessage("somemessage");

}



i am trying to open and close GUI.Window on a KeyPress and i could not find any BroadcastReciever or Message listener.
I will be glad for any help thanks

Is This A Good Question/Topic? 0
  • +

Replies To: Receive BroadcastMessage in Javascript

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8915
  • View blog
  • Posts: 33,430
  • Joined: 12-June 08

Re: Receive BroadcastMessage in Javascript

Posted 09 March 2013 - 01:43 PM

You mean the 'event listener' from the javascript events?

http://coding.smashi...esponding-user/
Was This Post Helpful? 1
  • +
  • -

#3 TrewSx  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 50
  • Joined: 07-June 12

Re: Receive BroadcastMessage in Javascript

Posted 09 March 2013 - 01:55 PM

I just quickly checked the Event.KeyboardEvent and that would be propapbly better to use for what i want.

thanks for pointing me right direction

This post has been edited by TrewSx: 09 March 2013 - 02:07 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1