dragonofdark
Members-
Posts
203 -
Joined
-
Last visited
Everything posted by dragonofdark
-
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
-
Oh, I understand ! Thanks !
-
Okay, so... I'll can "paint" the floor,... with these textures ?
-
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
-
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
-
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
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 ! -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
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 > -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
Hm.. Sorry... It works well (I need to sleep ) -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
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' -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
Doesn't work Nothing come, I haven't got any error or warning. -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
lol, it's my first script -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
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 ) -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
It works ! Now I'll make the commands for the siren -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
Nothing. -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
Oh damn... But "testsirene" only spawn the vehicle and not the siren... -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
The command "startSirene" doesn't work. (Ahah, you're also Belgian ) -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
The problem is that the playSound3D is just client-side... We should ask for this function in further versions. -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
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 -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
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 -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
Hmmm... If you've done it without render events so I'll follow what your said. -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
Wow, Now it's more difficult I'll request that for the next version. -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
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 ? -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
Thanks Doomed_Space_Marine for this great tutorial But my question was to put a siren on it, not lights -
Siren on other cars than police, fire and EMS
dragonofdark replied to dragonofdark's topic in Scripting
So I don't think that it works
