BabY Posted October 22, 2010 Posted October 22, 2010 Hello all, It's me 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 ?
BabY Posted October 22, 2010 Author Posted October 22, 2010 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 ???
MiniGoveya Posted October 22, 2010 Posted October 22, 2010 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
BabY Posted October 22, 2010 Author Posted October 22, 2010 nah I Meant, Theres an Object will be Created with Scripts ... I Need to Delete This Object from my Map ?
dzek (varez) Posted October 23, 2010 Posted October 23, 2010 you can use my moving objects helper: https://community.multitheftauto.com/index.php?p= ... ils&id=809
BabY Posted October 23, 2010 Author Posted October 23, 2010 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] ? Ik heb hulp nodig
Ryan1010 Posted October 23, 2010 Posted October 23, 2010 Are you able to download 'OMG' from somewhere, it sounds like a nice program.
BabY Posted October 23, 2010 Author Posted October 23, 2010 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 ?
dzek (varez) Posted October 23, 2010 Posted October 23, 2010 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..
BabY Posted October 23, 2010 Author Posted October 23, 2010 I Have Post the Problem in the Forum of the Server, Where the Creator Play and be Active sry for my fool english
CowTurbo Posted October 24, 2010 Posted October 24, 2010 https://community.multitheftauto.com/index.php?p= ... ils&id=614 try to use this =)
BabY Posted October 24, 2010 Author Posted October 24, 2010 *** 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
dzek (varez) Posted October 24, 2010 Posted October 24, 2010 OMG. And this not means: Object Movement Generator. Topic locked under request.
Recommended Posts