PDA

View Full Version : the car bomb



Rob
Sep 16 2001, 19:58
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.

Rastavovich
Sep 17 2001, 00:41
take this script and put it in the folder the mission is in.
opf/user/yourname/missions/missionname

hlq2action
Jan 19 2002, 15:17
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.

MP
Jan 19 2002, 16:55
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.

Damage Inc
Jan 19 2002, 16:57
I somehow don't think he needs that info anymore (four month old thread).

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