Jump to content

A small problem with a cmd


Recommended Posts

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.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...