sumariello Posted August 9, 2012 Author Share Posted August 9, 2012 If I want to open the gates with the command, how should I do? Link to comment
Tete omar Posted August 9, 2012 Share Posted August 9, 2012 addCommandHandler example addCommandHandler("open", functionname) Link to comment
sumariello Posted August 9, 2012 Author Share Posted August 9, 2012 I tried to do so but will not open with the command / open Link to comment
Tete omar Posted August 9, 2012 Share Posted August 9, 2012 That's right >> it should work now .. go try it Link to comment
sumariello Posted August 9, 2012 Author Share Posted August 9, 2012 wrong, it does not work Link to comment
Tete omar Posted August 9, 2012 Share Posted August 9, 2012 May you show me the meta.xml file and everything ? Link to comment
sumariello Posted August 9, 2012 Author Share Posted August 9, 2012 yes, we bring you images of the meta file and lua Link to comment
sumariello Posted August 9, 2012 Author Share Posted August 9, 2012 what the problem? Link to comment
Tete omar Posted August 9, 2012 Share Posted August 9, 2012 Change your meta file to "yourname" description="thedescription" version="1.0" type="server"/> Link to comment
scratcher911 Posted August 9, 2012 Share Posted August 9, 2012 hm. We will go and retype the whole script ? Copy the script here and use tags EDIT: Replace /open with open and /close with close. Link to comment
denny199 Posted August 9, 2012 Share Posted August 9, 2012 first, ur'e doing wrong is this: addEventHandler ( "/close", CloseGates ) [lua]addEventHandler ( "/open, OpenGates ) [/lua] it must be: addCommandHandler ( "close", CloseGates ) addCommandHandler ( "open", OpenGates ) the second why are you using : id = getElementModel ( thePlayer ) ? I don't see it back in the function and the last thing press full editor then press the lua button Link to comment
Castillo Posted August 9, 2012 Share Posted August 9, 2012 Instead of: addEventHandler You must use: addCommandHandler Link to comment
damien111 Posted August 10, 2012 Share Posted August 10, 2012 Next time more people can help you if you copy and paste your code like this [L u a] Your code [/l u a] with no spaces Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now