+SquallLeonhart Posted December 7, 2016 Share Posted December 7, 2016 Hi ! Maybe this question has been solved before, but I couldn't find an answer on this forum. I would like to execute a character command in LUA. I have a character with a command named "Test". I tried : Wherigo.Command(myCharacterIdentifier.Commands["Test"].Text) And Wherigo.Command(myCharacterIdentifier.Commands["Test"]) Nothing is working. What is the good syntax ? Thanks Quote Link to comment
+charlenni Posted December 7, 2016 Share Posted December 7, 2016 Correct would be yourObject:OnCommandName(target) where "yourObject" is the variable name of your object (not the caption or description) and "target" is the object, which the command should use as target. In your case myCharacterIdentifier:OnTest(nil) should work. Quote Link to comment
Recommended Posts
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.