digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 02 Oct 2012 11:40 AM |
| If anyone can tell me how to use these things, I can proceed with my game - I don't get how really I use them. |
|
|
| Report Abuse |
|
|
jobro13
|
  |
| Joined: 05 Aug 2009 |
| Total Posts: 2865 |
|
|
| 02 Oct 2012 11:55 AM |
| Why do you want to use them? |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 02 Oct 2012 11:58 AM |
| Well, I'm making a game - and my main 'script' has functions that aren't actually defined, like 'chat' - I want to define them, but not actually define them in the script. If you've seen chat3(tm) then it's a similar kind of thing to that, but also very different. |
|
|
| Report Abuse |
|
|
|
| 02 Oct 2012 12:25 PM |
A BindableEvent is an Event with a "Fire" Method, which fires a "Event" Event and passes any arguments passed in the "Fire" call to "Event". This makes easy communication between scripts:
--script 1
workspace.BindableEvent:Fire("Hello World!")
--script 2
workspace.BindableEvent.Event:connect(
function(msg)
print(msg)
end
end
)
--output = Hello World!
------
I don't know much about BindableFunctions, but there's always the wiki: http://wiki.roblox.com/index.php/BindableFunction |
|
|
| Report Abuse |
|
|