Beethoven Posted April 17, 2009 Posted April 17, 2009 hi, this is my script, i thougt it would be easy, but i can never get a car indestructable:[attachment=0]inv.zip[/attachment] how am i get this working? tried everything. and can i use this with the new vehicle create line: <vehicle id="Beethoven1" color="0,0,0,0" dimension="0" interior="0" model="411" plate="MASTER1" posX="-1353.3266601563" posY="-8.499737739563" posZ="5.7999997138977" rotX="0" rotY="0" rotZ="272.25524902344" upgrades="1010,1087,1080" /> ??? can someone read it? (its just a few words) and tell me wats wrong? ps. the map file is just one thing, dont look at it. heres the script: newvehicle = createVehicle( 425, 575.74719238281, 2888.5163574219, 3) setVehicleDamageProof(newvehicle, true) newvehicle1 = createVehicle( 425, 601.57495117188, 2893.8950195313, 3) setVehicleDamageProof(newvehicle1, true) newvehicle2 = createVehicle( 520, 595.71911621094, 2904.8894042969, 3) setVehicleDamageProof(newvehicle2, true) newvehicle3 = createVehicle( 520, 579.76336669922, 2900.91333007819, 3) setVehicleDamageProof(newvehicle3, true) its copied from the development wiki, server side.
Scarface Posted April 17, 2009 Posted April 17, 2009 Why is everyone getting the habit of creating Scripting related threads in the wrong section?
Gamesnert Posted April 17, 2009 Posted April 17, 2009 And in what way "isn't it indestructable"? This functions makes a vehicle damage proof, so it won't take damage from bullets, hits, explosions or fire. A damage proof's vehicle health can still be changed via script. Also, flipping the vehicle still causes it to explode. Always worked for me, except for the doors which still swing. But who cares about the darn doors. And scar, reason he posted it here is because he thought it was the function's fault, not his scripting.
Beethoven Posted April 17, 2009 Author Posted April 17, 2009 (edited) And in what way "isn't it indestructable"?This functions makes a vehicle damage proof, so it won't take damage from bullets, hits, explosions or fire. A damage proof's vehicle health can still be changed via script. Also, flipping the vehicle still causes it to explode. Always worked for me, except for the doors which still swing. But who cares about the darn doors. And scar, reason he posted it here is because he thought it was the function's fault, not his scripting. The vehicles spawn, but when i get in and crash, they blow, or shoot them with rpg, and torture them with flametrowers. Will it work with the "new" string i posted b4? I read about the flipping cars. Edited April 17, 2009 by Guest
Beethoven Posted April 17, 2009 Author Posted April 17, 2009 Il try that, thanks. And, again, when i name a vehicle "car" in 1.0 editor, and set setbladamageproof(car,true) will that work?
Beethoven Posted April 19, 2009 Author Posted April 19, 2009 NOTHING DOES WORK, eventhandler, false instead of true, client side, server side! Thos helis just stand there, not being invincible.
Gamesnert Posted April 20, 2009 Posted April 20, 2009 NOTHING DOES WORK, eventhandler, false instead of true, client side, server side! Ok, so it's your fault. Pwew, almost thought it was MTA's fault. Of which I know for sure it can't be true, because I remember it working in DP2.3 and I recently used it in the nightlies.
Beethoven Posted April 21, 2009 Author Posted April 21, 2009 NOTHING DOES WORK, eventhandler, false instead of true, client side, server side! Ok, so it's your fault. Pwew, almost thought it was MTA's fault. Of which I know for sure it can't be true, because I remember it working in DP2.3 and I recently used it in the nightlies. it IS a bug: i filled in a car id, instead of hunter, and it worked! so maybe it doesnt work with airplanes
Gamesnert Posted April 21, 2009 Posted April 21, 2009 I just tried a Hunter, I can smash it around as much as I want, nothing happens to the health. Not sure if it also worked in DP2.x (since I'm on 1.0) but I don't see anything on the bug page that could be connected to this. Except issue #3454, which concerns connecting to the server. Might that be it?
Beethoven Posted May 3, 2009 Author Posted May 3, 2009 I just tried a Hunter, I can smash it around as much as I want, nothing happens to the health.Not sure if it also worked in DP2.x (since I'm on 1.0) but I don't see anything on the bug page that could be connected to this. Except issue #3454, which concerns connecting to the server. Might that be it? yeah, i made that a damageproof vehicle spawns if you hit a marker. Works fine. thanks for wasting your time! Beethoven Ps: my sig doesnt show up!!
Gamesnert Posted May 3, 2009 Posted May 3, 2009 Ps: my sig doesnt show up!! You see anyone who DOES have a sig?
Beethoven Posted May 3, 2009 Author Posted May 3, 2009 no. but Mine doesnt show up! and the world is all about me!
Dark Dragon Posted May 5, 2009 Posted May 5, 2009 and the world is all about me! seriously, use your brain and you'll get the point of what he said
Recommended Posts