iPrestege Posted May 18, 2013 Posted May 18, 2013 createObject moveObject But you have to use event or function to make it move .
mint3d Posted May 18, 2013 Author Posted May 18, 2013 could i use this gate1= createObject ( 980, 134.39999389648, 1941.5, 21.10000038147, 0, 0, 0 ) gatecol = createColCircle ( 134.39999389648, 1941.5, 21.10000038147, 8 ) function opengates(thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == "ArmedForces" ) then moveObject (gate1, 5000, 145.89999389648, 1941.5, 21.10000038147 ) end end addEventHandler( "onColShapeHit", gatecol, opengates ) function closegates(thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == "ArmedForces" ) then moveObject (gate1, 5000, 134.39999389648, 1941.5, 21.10000038147 ) end end addEventHandler( "onColShapeLeave", gatecol, closegates )
Castillo Posted May 18, 2013 Posted May 18, 2013 You can also use getElementByID if you want to have the gate object on a map file. And yes, that should work.
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