tinnetju Posted June 18, 2010 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
dzek (varez) Posted June 18, 2010 Posted June 18, 2010 search, its all on https://wiki.multitheftauto.com/ Your question will be unanswered if left in this shape
x86 Posted June 18, 2010 Posted June 18, 2010 This is all what you need. createExplosion createProjectile createPed setPedFrozen setPedAnimation
tinnetju Posted June 18, 2010 Author Posted June 18, 2010 This is all what you need. createExplosion createProjectile createPed setPedFrozen setPedAnimation Aaaaah ja! Zoiets zocht ik ja! Bedankt sebasje
dzek (varez) Posted June 19, 2010 Posted June 19, 2010 this is english forum, and you should use english language then.
loler Posted June 19, 2010 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
tinnetju Posted June 19, 2010 Author 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!
tinnetju Posted June 19, 2010 Author 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...
dzek (varez) Posted June 19, 2010 Posted June 19, 2010 use this: https://forum.multitheftauto.com/viewtop ... 91&t=24834 read this: https://wiki.multitheftauto.com/wiki/Scripting_Introduction
loler Posted June 19, 2010 Posted June 19, 2010 tinnetju , you must delete the lines with X , Y ,Z you must have only the coordinates
tinnetju Posted June 19, 2010 Author 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?
kevin11 Posted June 19, 2010 Posted June 19, 2010 why dont u use the effect op molotov or grenade instead of a rocket
tinnetju Posted June 19, 2010 Author Posted June 19, 2010 I just wanna test the explosions, but is the code right or not?
dzek (varez) Posted June 19, 2010 Posted June 19, 2010 test it to see.. and when posting code snippets - use [lua] your code goes here [/lua] tags
tinnetju Posted June 19, 2010 Author 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?
kevin11 Posted June 19, 2010 Posted June 19, 2010 i dont know but a tip use before people are whining
tinnetju Posted June 19, 2010 Author Posted June 19, 2010 Ok! Ok! I get it! But do ya know whats wrong with my script
NotAvailable Posted June 19, 2010 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
tinnetju Posted June 19, 2010 Author 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!
NotAvailable Posted June 19, 2010 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 )
NotAvailable Posted June 19, 2010 Posted June 19, 2010 Try this: setTimer ( explosions1, 3000, 3 ) -- you can set the time how much you want (1000-1sec))
tinnetju Posted June 19, 2010 Author Posted June 19, 2010 I have changed setTimer but still nothing happens.
kevin11 Posted June 19, 2010 Posted June 19, 2010 i tell what everyone is telling me DEBUG THE SCRIPT AND GIVE US THE ERRORS
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