Jump to content

dragonofdark

Members
  • Posts

    203
  • Joined

  • Last visited

Everything posted by dragonofdark

  1. Hello, First, I'm sorry for my damnit English and if I'm boring you... Well, I would like to move an object attached to a DFT to an other point. But I can't find the good way, I've tested "moveObject", but it doesn't work. I tryed to make an other "attachElements" but the object move but without the movement (it's instantly moved). Could anyone helps me to make it moves with movement ? Thanks, dragonofdark
  2. Okay, so... I'll can "paint" the floor,... with these textures ?
  3. Hello, Everytime I see "Materials IDs" in the wiki (https://wiki.multitheftauto.com/wiki/Material_IDs) But what is it ? When and how to use that ? Thanks, dragonofdark
  4. dragonofdark

    CoD2MoD

    Sorry I was really tired
  5. dragonofdark

    CoD2MoD

    Hm.. Hello, I've a friend who want to know where to have this COD2 mod.. Could you tell me where to have it ? Thanks in advance
  6. SDK... You're my god ! And if I create some sirens (wail,Hi-lo,...) with differents commands, that will not cause any problem ? EDIT : We have no problem when some players start the siren !
  7. Ek, just a last little question and I'll leave you alone I've tried to change the script to let the vehicle created onResourceStart and to make the commands to start/stop siren but I have the bad argument warning (and the siren cannot be started/stopped)... EDIT : Damn.. I can't find the code I made >
  8. It's okay, I fixed the function name and now the command "sireneon" works but the "sireneoff" has a problem... WARNING: sirencomm1\siren_client.lua:2: Bad argument @ 'getElementPosition' WARNING: sirencomm1\siren_client.lua:4: Bad argument @ 'attachElements'
  9. Doesn't work Nothing come, I haven't got any error or warning.
  10. I've make the commands to start/stop siren, but I have some errors in the debugscript : WARNING: sirencomm1\siren_client.lua:2: Bad argument @ 'getElementPosition' WARNING: sirencomm1\siren_client.lua:5: Bad argument @ 'attachElements' The siren_client.lua is : function startsiren (vehicle) local x,y,z = getElementPosition( vehicle ) local sound = playSound3D( "sons\\sirene1.wav", x, y, z, true) setSoundMaxDistance(sound, 70) attachElements ( sound, vehicle) end addCommandHandler("sirenon", startsiren ) function stopsiren (vehicle) local x,y,z = getElementPosition( vehicle ) local sound = playSound3D( "sons\\sirene1.wav", x, y, z, false) setSoundMaxDistance(sound, 70) attachElements ( sound, vehicle) end addEvent( "stopsiren", true ) addCommandHandler("sirenoff", startsiren )
  11. It works ! Now I'll make the commands for the siren
  12. Oh damn... But "testsirene" only spawn the vehicle and not the siren...
  13. The command "startSirene" doesn't work. (Ahah, you're also Belgian )
  14. The problem is that the playSound3D is just client-side... We should ask for this function in further versions.
  15. The errors are due of it's my first script Hm... Your corrections work well but how can I set up for the siren is listened in more longer distances? And... I can't enter in the vehicle O_o
  16. Well, I started to script that. But the vehicle isn't there and I can't hear any sound. Here is my meta.xml : <meta> <info author="dragonofdark" version="1.0" name="4X4 avec sirène et gyros" type="misc" /> <script src="sirene.lua" type="client" /> <file src="sons/sirene1.wav" /> </meta> My sirene.lua : function onClientResourceStart() local commandant = createVehicle ( 554, 1227.746, -1422.281, 13.5432, [0, 0, 0, COMM1] ) local x,y,z = getElementPosition( commandant ) local sound = playSound3D("sons/sirene1.wav", 0, 0, 0, true) attachElements ( sound, commandant, 0, 0, 0 ) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) In the script folder I have : - Directory "sons" with my sirene1.wav - meta.xml - sirene.lua It's just a test to see if it can create and attach the siren to it but it doesn't work
  17. Hmmm... If you've done it without render events so I'll follow what your said.
  18. Wow, Now it's more difficult I'll request that for the next version.
  19. Ahah don't worry Doomed_Space_Marine... Your link is useful for me too Thanks Solidsnake14, so if I'm right, I need to : - Create a car ; - Make a playSound3D ; - Attach playSound3D to the car ; - Create a command to play the sound. Okay ?
  20. Thanks Doomed_Space_Marine for this great tutorial But my question was to put a siren on it, not lights
×
×
  • Create New...