xvgigakid
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
|
| 22 Mar 2012 04:48 PM |
| Can some one give me an example on how to use BindableFunctions? |
|
|
| Report Abuse |
|
|
xvgigakid
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
| |
|
|
| 22 Mar 2012 05:46 PM |
Here's a thread on it.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=63070066
I don't really get it either. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2012 06:08 PM |
| It is an object that is made just like any other objects: Instance.new(). It has a property that is called "OnInvoke" and a method called "Invoke". You can set "OnInvoke" to a function. such as "bindable.OnInvoke = (function (arg) print(arg) end)". In this case, when you Invoke it using its method, "Invoke", and pass a string as an argument, like so: "bindable:Invoke('Hello World!')" it will output the text. This bindable function could be useful when you want to see the source of a function for verification, or if you want to change it depending on a outside variable. |
|
|
| Report Abuse |
|
|