Results 1 to 4 of 4

Thread: Flat tire on vehicle.

  1. #1

    Flat tire on vehicle.

    I'm trying to create a mission where the appearance of a car with a flat tire is needed.

    This is me trying to figure that out:

    Tried searching, but came up empty. So I try asking, in the hope that someone knows anything about adding damaged parts to vehicles.

    Cheers

  2. #2
    The only thing I can think of is to use "setFuel".

    For example: jeep1 setFuel 0

    Hope this helps...


    EDIT: You can also check this thread, 2nd post: http://www.ofpec.com/forum/index.php?topic=10033.0

    Maybe a little bit complicated and made for OFP...
    Last edited by Beny.cz; Aug 24 2009 at 08:50.

  3. #3
    setHit

    For most cars the parts are named like this:
    wheel_1_1_steering = Left front tire
    wheel_1_2_steering = Left rear tire
    wheel_1_3_steering = Left middle tire (trucks)
    wheel_2_1_steering = Right front tire
    wheel_2_2_steering = Right rear tire
    wheel_2_3_steering = Right middle tire (trucks)


    So for example flattening the front right would be done with this:
    Code:
    vehicle setHit ["wheel_2_1_steering", 0.9];

  4. #4
    Quote Originally Posted by Deadfast View Post
    setHit

    For most cars the parts are named like this:
    wheel_1_1_steering = Left front tire
    wheel_1_2_steering = Left rear tire
    wheel_1_3_steering = Left middle tire (trucks)
    wheel_2_1_steering = Right front tire
    wheel_2_2_steering = Right rear tire
    wheel_2_3_steering = Right middle tire (trucks)


    So for example flattening the front right would be done with this:
    Code:
    vehicle setHit ["wheel_2_1_steering", 0.9];
    Thank you very much! Worked perfectly

Posting Permissions

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