Siertown Posted May 4, 2011 Share Posted May 4, 2011 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
Castillo Posted May 4, 2011 Share Posted May 4, 2011 This should move the object when the resource starts. Link to comment
Siertown Posted May 5, 2011 Author Share Posted May 5, 2011 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 Link to comment
Castillo Posted May 5, 2011 Share Posted May 5, 2011 This doesn't has any kind of system to do what you mentioning, you should use a marker or a colshape. https://wiki.multitheftauto.com/wiki/Ser ... _functions https://wiki.multitheftauto.com/wiki/Ser ... _functions Link to comment
diegofkda Posted May 6, 2011 Share Posted May 6, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now