Jump to content

Help, With this script


Recommended Posts

Hi, I want to ensure that when a player I passed this object move that I'm missing here?.

-- DDC OMG generated script, PLACE IT SERVER-SIDE 
  
function omg_movement() 
  Columbigate = createObject(975, 2464.798828125, -1660.2626953125, 13.972749710083, 0, 0, 90) 
  omgMoveColumbigate(1) 
end 
  
function omgMoveColumbigate(point) 
  if point == 1 then 
    moveObject(Columbigate, 5000, 2464.6494140625, -1658.8291015625, 18.153991699219, 0, 0, 0) 
    setTimer(omgMoveColumbigate, 5000, 1, 2) 
  elseif point == 2 then 
    moveObject(Columbigate, 5000, 2464.798828125, -1660.2626953125, 13.972749710083, 0, 0, 0) 
    setTimer(omgMoveColumbigate, 5000, 1, 1) 
  end 
end 
  
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), omg_movement) 
  

Link to comment

there are two ways:

createMarker ( float x, float y, float z, [string theType, float size, int r, int g, int b, int a, visibleTo = getRootElement()] ) 

Hit events: https://wiki.multitheftauto.com/wiki/Cli ... ker_events

or

createColCircle ( float fX, float fY, float radius ) 

Hit events: https://wiki.multitheftauto.com/wiki/Cli ... ape_events

them both are the same thing, the difference is, createMarker shows a marker, and createColCircle is an invisible marker.

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