Jump to content

Moving markers doesn't work?


myonlake

Recommended Posts

Hello there,

I've been trying to make a fireworks script which seems to be a little bit hardcored though..

So, the problem is that the marker doesn't move there.

function startshow(player, cmd) 
    local launch1 = createMarker(95.51, 101.06, 2.07, "corona", 2, 255, 255, 80, 155) 
    local blip1 = createBlipAttachedTo(launch1, 0, 2, 255, 255, 255, 255) 
    setTimer(launch, 1000, 1, launch1, blip1) 
end 
addCommandHandler("startshow", startshow) 
  
function launch(launch1, blip1) 
    moveObject(launch1, 2000, 94, 103, 30, 0, 0, 0, "OutQuad") 
    setTimer(destroyElement, 2000, 1, blip1) 
    setTimer(createExplosion, 2000, 1, 2000, 94, 30, 0) 
end 
 
Link to comment

I think the moveObject move only objects... xD

launch1 are marker element but moveObject() accept only objects element...

bool moveObject ( object theObject, int time, 
                  float targetx, float targety, float targetz,  
                [ float moverx, float movery, float moverz, 
                  string strEasingType, float fEasingPeriod, float fEasingAmplitude, float fEasingOvershoot ] ) 

Link to comment
I think the moveObject move only objects... xD

launch1 are marker element but moveObject() accept only objects element...

bool moveObject ( object theObject, int time, 
                  float targetx, float targety, float targetz,  
                [ float moverx, float movery, float moverz, 
                  string strEasingType, float fEasingPeriod, float fEasingAmplitude, float fEasingOvershoot ] ) 

Oh, right... dayum. I thought it was so simple..

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