Revenger27 Posted July 26, 2010 Posted July 26, 2010 I created a cmd to move a gate i created at the entrance to the LVAP runway function moveAirportobj ( thePlayer, command ) moveObject ( airportgate, 5000, 1705.8194, 1607.4523, 5.1635, 0, 0, 0 ) outputChatBox ( "LV Airport Gate Open, gate will close in 5 secs", thePlayer ) setTimer ( removeAirport, 10000, 0 ) end addCommandHandler ( "lvagate", moveAirportobj ) local airportgate2 = createObject ( 980, 1705.8194, 1607.4523, 5.1635, 0, 0, 74.6800 ) function removeAirportobj () moveObject ( airportgate2, 5000, 1705.8194, 1607.4523, 11.1635, 0, 0, 0 ) end now i don't know why but this cmd can only be used once.
AeroXbird Posted July 26, 2010 Posted July 26, 2010 You have the timer set to repeat infinitly So change the 0 to 1 in the setTimer
DiSaMe Posted July 30, 2010 Posted July 30, 2010 Opening function uses airportgate, while the element is stored in airportgate2. -
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