Jump to content

How to create a Lua argument function?


beo6
 Share

Recommended Posts

Hello,

 

i wonder how we should be able to create an argument function in lua like it is showed here:

 

http://www.leadwerks.com/werkspace/page/documentation/_/user-guide/object-scripts-r631

 

ccs-1-0-23180900-1356309956_thumb.png

 

 

a function like this does not work:

function Script:GetValue()--out
return self.thevalue
end

 

and adding a second parameter to self.component:CallOutputs("GetValue", self.thevalue)

doesn't work also and is most probably wrong anyway.

 

haven't found any better documentation about that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...