[SOLVED] Calling a function from a variable

If i save a function into a variable like this [lua]obj.fn = myFunction[/lua] how can i call the function at a later time using the [lua]obj.fn[/lua] [import]uid: 50514 topic_id: 20637 reply_id: 320637[/import]

You would use;
[lua]obj.fn()[/lua]

Peach :slight_smile: [import]uid: 52491 topic_id: 20637 reply_id: 80994[/import]

Ahh, i get it. I had tried that but i only thought it didn’t work because the function i was calling was using an event condition.

Thanks! [import]uid: 50514 topic_id: 20637 reply_id: 81001[/import]

Ah I see - glad it’s sorted now :slight_smile:

Peach [import]uid: 52491 topic_id: 20637 reply_id: 81018[/import]