Jump to content
Sign in to follow this  
Rob

the car bomb

Recommended Posts

i got this script from someone and i don't understand where to put the stuff.

; A small script that will blowup a vehicle as soon as a specific unit gets into it

; Get the unit which will be affected

_Unit = _this select 0

; Get the vehicle which will be affected

_Vehicle = _this select 1

; Main loop

#Update

; Check is the unit is in the vehicle

? (_Unit in _Vehicle) && (speed _Vehicle > 5) : goto "BlowUp"

; Wait 2 seconds

~2

goto "Update"

; The unit must be in the vehicle

#BlowUp

; Wait 5 seconds before blowing this up

~5

; Destroy the vehicle

_Vehicle setdammage 1

exit

i understand how to use init boxes and everything but he didn't explain very well where to put them. if u understand can u jelp out plz.

Share this post


Link to post
Share on other sites

this script of bomb car is not reallistic at all ... it will result the car to deform and to have his crew killed...

but it won t show any explosion..

the better is to camcreate a 125SHELL at the car position and then to put setdammage 1

to the car...

will look a hell more realistic.

Share this post


Link to post
Share on other sites

The script is already compiled Rob, just activate it with:

[unitname,vehiclename] exec "script.sqs"

It says that the vehicle has to go over 5MPH to explode and

that the unit has to be in the vehicle.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Damage Inc @ Jan. 19 2002,17:57)</td></tr><tr><td id="QUOTE">I somehow don't think he needs that info anymore (four month old thread).<span id='postcolor'>

D'oh!!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×