tinnetju Posted June 18, 2010 Share Posted June 18, 2010 (edited) Ok, well my friend and i wanted to make a MTA video, so we searched for Metallica live shows (because my friend is fan of Metallica) We wanted to make something like this: (Im talking about the explosions to script that) I don't need to map or something, but i just want the explosions and fireworks (rockets in MTA that explode in the sky, the same effect when you shoot an RPG into the sky). I also wanted to make frozen pets that dance on the music (i don't know if there is a ped animation that dances on the Metallica music) And bodyguards and stuff.Can someone help me please...? Thanks Edited June 19, 2010 by Guest Link to comment
dzek (varez) Posted June 18, 2010 Share Posted June 18, 2010 search, its all on https://wiki.multitheftauto.com/ Your question will be unanswered if left in this shape Link to comment
tinnetju Posted June 18, 2010 Author Share Posted June 18, 2010 Well, my questions weren't answered... Link to comment
x86 Posted June 18, 2010 Share Posted June 18, 2010 This is all what you need. createExplosion createProjectile createPed setPedFrozen setPedAnimation Link to comment
tinnetju Posted June 18, 2010 Author Share Posted June 18, 2010 This is all what you need. createExplosion createProjectile createPed setPedFrozen setPedAnimation Aaaaah ja! Zoiets zocht ik ja! Bedankt sebasje Link to comment
dzek (varez) Posted June 19, 2010 Share Posted June 19, 2010 this is english forum, and you should use english language then. Link to comment
loler Posted June 19, 2010 Share Posted June 19, 2010 Hey , i have the anwanser for explosions , but on the fireworks i need to work a bit more Here it is : function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) -- you can add how many you want setTimer ( explosions1, 1000, 1 ) -- you can set the time how much you want (1000-1sec)) end end Link to comment
tinnetju Posted June 19, 2010 Author Share Posted June 19, 2010 Hey , i have the anwanser for explosions , but on the fireworks i need to work a bit more Here it is : function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) -- you can add how many you want setTimer ( explosions1, 1000, 1 ) -- you can set the time how much you want (1000-1sec)) end end Thanks man! Link to comment
tinnetju Posted June 19, 2010 Author Share Posted June 19, 2010 Ok, i made this: function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false ) createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false ) createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false ) createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec)) end end But when i start the script, i get a message in the debugscript that he expected an EOF... I don't how to add the end of line... Link to comment
dzek (varez) Posted June 19, 2010 Share Posted June 19, 2010 use this: https://forum.multitheftauto.com/viewtop ... 91&t=24834 read this: https://wiki.multitheftauto.com/wiki/Scripting_Introduction Link to comment
loler Posted June 19, 2010 Share Posted June 19, 2010 tinnetju , you must delete the lines with X , Y ,Z you must have only the coordinates Link to comment
tinnetju Posted June 19, 2010 Author Share Posted June 19, 2010 So i got this: function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false ) createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false ) createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false ) createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec)) end end And it has to be this?: function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false ) createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false ) createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false ) createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false ) setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec)) end end And, i wanted to make a blip to: function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false ) createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false ) createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false ) createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false ) setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec)) end end ) createBlip ( -2078.2707519531, 1427.4582519531, 8.5, 48 ) end ) Is that correct? Link to comment
kevin11 Posted June 19, 2010 Share Posted June 19, 2010 why dont u use the effect op molotov or grenade instead of a rocket Link to comment
tinnetju Posted June 19, 2010 Author Share Posted June 19, 2010 I just wanna test the explosions, but is the code right or not? Link to comment
dzek (varez) Posted June 19, 2010 Share Posted June 19, 2010 test it to see.. and when posting code snippets - use [lua] your code goes here [/lua] tags Link to comment
tinnetju Posted June 19, 2010 Author Share Posted June 19, 2010 I did test it, and i still get a eof in my debugscript and it doesn't work, do you now whats wrong with it? Link to comment
kevin11 Posted June 19, 2010 Share Posted June 19, 2010 i dont know but a tip use before people are whining Link to comment
tinnetju Posted June 19, 2010 Author Share Posted June 19, 2010 Ok! Ok! I get it! But do ya know whats wrong with my script Link to comment
NotAvailable Posted June 19, 2010 Share Posted June 19, 2010 Ok! Ok! I get it! But do ya know whats wrong with my script Delete the: end It's the last 1 Link to comment
tinnetju Posted June 19, 2010 Author Share Posted June 19, 2010 Ok guys, i got this: function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false ) createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false ) createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false ) createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false ) setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec)) end createBlip ( -2078.2707519531, 1427.4582519531, 8.5, 48 ) But only the clip works! And the debugscript doesn't say anything! Did i filled in the wrong stuff in at setTimer? Or is it anything else..? Please help me, and thanks for so far! Link to comment
NotAvailable Posted June 19, 2010 Share Posted June 19, 2010 Ok guys, i got this: function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false ) createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false ) createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false ) createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false ) setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec)) end createBlip ( -2078.2707519531, 1427.4582519531, 8.5, 48 ) But only the clip works! And the debugscript doesn't say anything! Did i filled in the wrong stuff in at setTimer? Or is it anything else..? Please help me, and thanks for so far! Yes u did it wrong the timer part! its in mili seconds (Ex. 1000 MS = 1 Second ) Link to comment
NotAvailable Posted June 19, 2010 Share Posted June 19, 2010 Try this: setTimer ( explosions1, 3000, 3 ) -- you can set the time how much you want (1000-1sec)) Link to comment
tinnetju Posted June 19, 2010 Author Share Posted June 19, 2010 I have changed setTimer but still nothing happens. Link to comment
kevin11 Posted June 19, 2010 Share Posted June 19, 2010 i tell what everyone is telling me DEBUG THE SCRIPT AND GIVE US THE ERRORS 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