Jump to content

Moving Objects


BabY

Recommended Posts

Posted

Hello all, It's me :D

When I Tried to Make a Moving Object

Using OMG Gnerator (Object Movement Generator)

and This is my Script File :

-- DDC OMG generated script: 
  
function omgInit() 
  omg6320 = createObject(970,3297.177734375,-1700.7021484375,25.192806243896,0,0,29) 
  omg6320Attach1 = createObject(970, 3297.177734375, -1700.7021484375, 25.192806243896, 0, 0, 29) 
  attachElements(omg6320Attach1, omg6320, 0, 0, 4.8316906031687e-013, 0, 0, 0) 
  omgMoveomg6320(1) 
end 
  
function omgMoveomg6320(point) 
  if point == 1 then 
    moveObject(omg6320,4444,3297.177734375,-1700.7021484375,24.142822265625,0,0,0) 
    setTimer(omgMoveomg6320,4444 + 0, 1, 2) 
  elseif point == 2 then 
    moveObject(omg6320,4444,3297.177734375,-1700.7021484375,25.192806243896,0,0,0) 
    setTimer(omgMoveomg6320,4444 + 0, 1, 1) 
  end 
end 
  
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), omgInit) 

I Had a Problem !

When I Test my Map, I Can't see the Object Moving ... What is the Problem here ?

Thanks dzek for bearing my stupid questions as a noob. You helped me become a better programmer.

Now I understand how important it is to help those who SUCK at programming.

Posted

But Look This :

omg6320 = createObject(970,3297.177734375,-1700.7021484375,25.192806243896,0,0,29) 
5.  omg6320Attach1 = createObject(970, 3297.177734375, -1700.7021484375, 25.192806243896, 0, 0, 29) 

I Think I Should Delete my Object in the Map ???

Thanks dzek for bearing my stupid questions as a noob. You helped me become a better programmer.

Now I understand how important it is to help those who SUCK at programming.

Posted

1.- Don't make double-post.

2.- When you use OMG you have to put it in LUA file - someting like omg.lua movement.lua move.lua etc.

3.- This is NOT going on .map file

Posted

nah

I Meant, Theres an Object will be Created with Scripts ...

I Need to Delete This Object from my Map ?

Thanks dzek for bearing my stupid questions as a noob. You helped me become a better programmer.

Now I understand how important it is to help those who SUCK at programming.

Posted

yes.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

Still not Working ...

Thanks dzek for bearing my stupid questions as a noob. You helped me become a better programmer.

Now I understand how important it is to help those who SUCK at programming.

Posted

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

It's so Hard D:

I Want to Know what is the Matter of the OMG File ...

I Have the File But I Think It's Occupied ... :( :( :( :( :( :( :( :(

help !

waar is [DMC] ? :D

Ik heb hulp nodig

Thanks dzek for bearing my stupid questions as a noob. You helped me become a better programmer.

Now I understand how important it is to help those who SUCK at programming.

Posted

WAKE UP, TEN TEN TEN TENNNNNNN

This is OMG, But I Can't Make Moving Objects with it ...

When I Generate the File and Put it in a lua File, It's not Working ...

and I Have Posted my File, Then I'am Waiting for a Help ...

Got it ?

Thanks dzek for bearing my stupid questions as a noob. You helped me become a better programmer.

Now I understand how important it is to help those who SUCK at programming.

Posted

ask generator creator why its not working when it should?

im debugging it now, i'll post debug code, so you will be able to find the error (and learn to debug by urself)

edit:

the funny thing is that it's actually WORKING.

Probably this is only a part of your file, and you just have a syntax error somewhere else, which makes whole script to not working..

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

I Have Post the Problem in the Forum of the Server, Where the Creator Play and be Active xD

sry for my fool english :P

Thanks dzek for bearing my stupid questions as a noob. You helped me become a better programmer.

Now I understand how important it is to help those who SUCK at programming.

Posted

*** SOLVED***

Please Lock

I Posted the Problem in DDC Forum and They Helped me.

The Problem was :

Script File was in Client Side, It Should be in Server side

Thanks dzek for bearing my stupid questions as a noob. You helped me become a better programmer.

Now I understand how important it is to help those who SUCK at programming.

Posted

OMG.

And this not means: Object Movement Generator.

Topic locked under request.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...