Jump to content

Help, With this script


Recommended Posts

Posted

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) 
  

Posted

This should move the object when the resource starts.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
This should move the object when the resource starts.

hmm.. yes but as it should be so that when a player is close to the object is moving about

Posted

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.

"Everything exists, because otherwise nothing would", Bob Marley, 2015.

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