sumariello Posted August 9, 2012 Author Posted August 9, 2012 If I want to open the gates with the command, how should I do?
Tete omar Posted August 9, 2012 Posted August 9, 2012 addCommandHandler example addCommandHandler("open", functionname)
sumariello Posted August 9, 2012 Author Posted August 9, 2012 I tried to do so but will not open with the command / open
Tete omar Posted August 9, 2012 Posted August 9, 2012 That's right >> it should work now .. go try it
Tete omar Posted August 9, 2012 Posted August 9, 2012 May you show me the meta.xml file and everything ?
sumariello Posted August 9, 2012 Author Posted August 9, 2012 yes, we bring you images of the meta file and lua
Tete omar Posted August 9, 2012 Posted August 9, 2012 Change your meta file to "yourname" description="thedescription" version="1.0" type="server"/>
scratcher911 Posted August 9, 2012 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.
denny199 Posted August 9, 2012 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
Castillo Posted August 9, 2012 Posted August 9, 2012 Instead of: addEventHandler You must use: addCommandHandler
damien111 Posted August 10, 2012 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
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