GerardWay Posted December 4, 2011 Share Posted December 4, 2011 how do i make my gate automatically close after ive opened it with a command? Link to comment
Castillo Posted December 4, 2011 Share Posted December 4, 2011 First, this should go in the "Scripting" section: viewforum.php?f=91 Second, how can we help you if you don't post the code? Third, do what the second says. Link to comment
GerardWay Posted December 4, 2011 Author Share Posted December 4, 2011 lol sorry for posting in the wrong place castillo Gate1 = createObject ( 969, 209.69999694824, 1875.5, 12.39999961853, 0, 0, 0 ) function ToggleGate(thePlayer,command) moveObject (Gate1, 4000, 210.10000610352, 1875.5999755859, 8.8999996185303) end addCommandHandler ( "mgo", ToggleGate ) after that i want the gate to close automatically plz Link to comment
Castillo Posted December 4, 2011 Share Posted December 4, 2011 (edited) Gate1 = createObject ( 969, 209.69999694824, 1875.5, 12.39999961853, 0, 0, 0 ) function ToggleGate(thePlayer,command) moveObject (Gate1, 4000, 210.10000610352, 1875.5999755859, 8.8999996185303) setTimer(moveObject,6000,1,Gate1,4000,209.69999694824, 1875.5, 12.39999961853) end addCommandHandler ( "mgo", ToggleGate ) This will close it after 6 seconds. Edited December 4, 2011 by Guest Link to comment
GerardWay Posted December 4, 2011 Author Share Posted December 4, 2011 thanks man.... Link to comment
Castillo Posted December 4, 2011 Share Posted December 4, 2011 You're welcome. P.S: Some administrator move this topic to the "Scripting" section . Link to comment
GerardWay Posted December 4, 2011 Author Share Posted December 4, 2011 its not working..... Link to comment
Castillo Posted December 4, 2011 Share Posted December 4, 2011 Yes, my bad, copy the code again, I forgot about an argument . Link to comment
GerardWay Posted December 4, 2011 Author Share Posted December 4, 2011 Gate1 = createObject ( 969, 209.69999694824, 1875.5, 12.39999961853, 0, 0, 0 ) function ToggleGate(thePlayer,command) moveObject (Gate1, 4000, 210.10000610352, 1875.5999755859, 8.8999996185303) end addCommandHandler ( "mgo", ToggleGate ) Link to comment
Towncivilian Posted December 4, 2011 Share Posted December 4, 2011 Topic moved to Scripting section. Link to comment
GerardWay Posted December 4, 2011 Author Share Posted December 4, 2011 thanks for moving the topic TownCivilian edit: castillo r u gonna fix it or not? 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