Jump to content

moveObject not working


Chris!i!

Recommended Posts

col1 = createMarker ( 183.6, 1927, 16, "cylinder", 8, 255, 255, 255, 170 )  
  
gate1 = createObject(980, 184, 1926, 20, 0, 0, 90)                              
  
function openGate1(player) 
    if (player and isElement(player) and getElementType(player)) == "player" then 
    local group = exports["CSTgroups"]:getPlayerGang(player) 
        if (group and group == "SpecialForces" or exports.CSTteams:isPlayerInTeams(player, "Staff")) then 
       moveObject ( gate1, 5000, 184, 1926, 30 ) 
        end 
    end 
end   
addEventHandler("onMarkerHit", col1, openGate1) 

Gate isnt moving whats wrong?

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...