Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mod Help => Topic started by: MetalCat on December 21, 2011, 05:34:26 PM

Title: Script for breaking the engine
Post by: MetalCat on December 21, 2011, 05:34:26 PM
Hello!


 




I am looking for a script what can damage the engine of the car but not all of the vehilicle...Ist here some script like this?
Title: Script for breaking the engine
Post by: orangebrains on December 22, 2011, 06:44:23 PM
Vito = game.game:GetActivePlayer()




Vitocar = Vito:GetOwner()




bindkey ("U", "game.game:GetActivePlayer():GetOwner():SetMotorDamage(0)")




bindkey ("I", "game.game:GetActivePlayer():GetOwner():SetMotorDamage(50)")




bindkey ("O", "game.game:GetActivePlayer():GetOwner():SetMotorDamage(100)")
Title: Script for breaking the engine
Post by: Mike Bruski on December 22, 2011, 06:50:32 PM
I moved it Mod Help for you MetalCat.
Title: Script for breaking the engine
Post by: MetalCat on December 22, 2011, 07:17:27 PM
It doesn̫̉t works for me...<img src="/emoticons/undecided.png.d70e4c723983e80bbe865cf69a55ad60.png" alt="(//irritated.gif)" data-emoticon="">
Title: Script for breaking the engine
Post by: eXistenZ34 on December 22, 2011, 07:36:15 PM
orangebrains




if you write this







QuoteVito = game.game:GetActivePlayer()

Vitocar = Vito:GetOwner()


you must write this




Quotebindkey ("U", "Vitocar:SetMotorDamage(0)")


<hr class="bbcode_rule" />





if you write this







Quotebindkey ("U", "game.game:GetActivePlayer():GetOwner():SetMotorDamage(0)")



This is useless







QuoteVito = game.game:GetActivePlayer()

Vitocar = Vito:GetOwner()




<hr class="bbcode_rule" />



 




MetalCat




you must be in the car


 




Ex: game.game:GetActivePlayer():GetOwner():SetMotorDamage(100)




(//thumbnails44.imagebam.com/16588/721e9d165879743.jpg&key=4dfbdfed9fd823f64f3d99e70780449a13b5bf586b0dd65ea6c65d293d6b6d29) (http://www.imagebam.com/image/721e9d165879743:2dqnahiq) (//thumbnails57.imagebam.com/16588/e3bccb165879755.jpg&key=273d8ed72cc4bac01bac27c0abedc71f8602d71c7079332bff2985111cc87201) (http://www.imagebam.com/image/e3bccb165879755:2dqnahiq)
Title: Script for breaking the engine
Post by: MetalCat on December 23, 2011, 09:26:38 AM
existenZ34




Thanks! I know that I must be in a car, because I have got script like that. That script can give you a speed and I think that zahar999 PlusOne presented in a video, too long time ago.
Title: Script for breaking the engine
Post by: eXistenZ34 on December 23, 2011, 01:05:22 PM
Watch the third video of PlusOne alias Painkiller1992LGUA in


 




http]


 




and read the comments (//forum/22-existenz34s-mods/2182-mafia-2-empire-bay-at-night)
Title: Script for breaking the engine
Post by: MetalCat on December 23, 2011, 04:55:46 PM
Yes, yes.. I have seen this video...   (//wp-content/uploads/invision_emoticons/ohmy.png) ops: I though that was posted by zahar999  (//wp-content/uploads/invision_emoticons/huh.png.04e12a04934075c5a1e0c618a726c4d9.png) Sorry, my bad.  (//wp-content/uploads/invision_emoticons/wacko.png)(//wp-content/uploads/invision_emoticons/ohmy.png) ops: