explode on the vehicle itself
#1

Hey guys...

there is a function called

CreateExplosion

but it's not helpful for vehicles

when a vehicle is fast the explosion of ^^ function is gonna be behind the vehicle (that's bad)
so i'm asking you if there is a function for creating an explode in the vehicle it self and it make vehicle get blowed up(vehicle died(health 0))
Reply
#2

You could either create the explosion a few meters in FRONT of the vehicle, or just use SetVehicleHealth and set it to 0.
Reply
#3

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
You could either create the explosion a few meters in FRONT of the vehicle, or just use SetVehicleHealth and set it to 0.
wbt if the vehicle was stopped?
and SetVehicleHealth to 0 doesn't kills the vehicle and who is in it directly
it will be fired for 2 seconds or 3 then it will kill people who are in it, and that's bad
Reply
#4

Why don't you get how fast it's going then, if it's fast enough put the explosion in front of the vehicle if not do it normally.
Reply
#5

try first use

PHP код:
SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.00.00.0); 
then explosion
Reply
#6

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
Why don't you get how fast it's going then, if it's fast enough put the explosion in front of the vehicle if not do it normally.

that won't work well
Reply
#7

Have you tried explosive barrels (object)? Car blows up instantly after crashing into that object.
Reply
#8

Quote:
Originally Posted by brawrr
Посмотреть сообщение
try first use

PHP код:
SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.00.00.0); 
then explosion
well you explain this first? what do it mean
-.-
Reply
#9

You can't cause a vehicle to insatntly explode. All you can do is either create an explosive barrel in front of the vehicle (if moving), or use CreateExplosion, or set the health to 0.
Reply
#10

Quote:
Originally Posted by GoldZoroGrab
Посмотреть сообщение
that won't work well
It would work perfectly fine.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)