GerardWay Posted December 4, 2011 Posted December 4, 2011 how do i make my gate automatically close after ive opened it with a command?
Castillo Posted December 4, 2011 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.
GerardWay Posted December 4, 2011 Author 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
Castillo Posted December 4, 2011 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
Castillo Posted December 4, 2011 Posted December 4, 2011 You're welcome. P.S: Some administrator move this topic to the "Scripting" section .
Castillo Posted December 4, 2011 Posted December 4, 2011 Yes, my bad, copy the code again, I forgot about an argument .
GerardWay Posted December 4, 2011 Author 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 )
GerardWay Posted December 4, 2011 Author Posted December 4, 2011 thanks for moving the topic TownCivilian edit: castillo r u gonna fix it or not?
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