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.
; 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.