Jump to content

how?


MAB

Recommended Posts

do you mean somthing like this?

mrker = createMarker( 2.2910349369049, 10.279877662659, 3.1096496582031 ,"cylinder") 
dir = .1 
setTimer( 
    function() 
        if dir == -.1 then 
            dir = .1 
        elseif dir == .1 then 
            dir = -.1 
        end 
    end,1000,0 
) 
addEventHandler("onClientRender", root, 
    function() 
        local x, y, z = getElementPosition( mrker ) 
        setElementPosition( mrker, x, y, z+dir ) 
end 
) 

Link to comment
do you mean somthing like this?
mrker = createMarker( 2.2910349369049, 10.279877662659, 3.1096496582031 ,"cylinder") 
dir = .1 
setTimer( 
    function() 
        if dir == -.1 then 
            dir = .1 
        elseif dir == .1 then 
            dir = -.1 
        end 
    end,1000,0 
) 
addEventHandler("onClientRender", root, 
    function() 
        local x, y, z = getElementPosition( mrker ) 
        setElementPosition( mrker, x, y, z+dir ) 
end 
) 

it is what i need... thanks alot

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