Results 1 to 6 of 6

  Click here to go to the first Developer post in this thread.  

Thread: the car bomb

  1. #1
    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.

  2.   This is the last Developer post in this thread.   #2
    take this script and put it in the folder the mission is in.
    opf/user/yourname/missions/missionname

  3. #3
    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.

  4. #4
    Staff Sergeant
    Join Date
    Nov 3 2001
    Location
    Republic of Ireland
    Posts
    374
    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.

  5. #5
    I somehow don't think he needs that info anymore (four month old thread).

  6. #6
    Staff Sergeant
    Join Date
    Nov 3 2001
    Location
    Republic of Ireland
    Posts
    374

    Red face

    </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&#39;t think he needs that info anymore (four month old thread).[/QUOTE]<span id='postcolor'>
    D&#39;oh&#33;&#33;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •