Sign in to follow this  
Snatchos

Enchanced Vehicle Script

1 post in this topic

Hello Everybody!

Ive havent touched scripting since arma 2  it been a while  What im Trying to Do  Improve Arma Vehicles With Dynamic Value That Cause shit to happens :D so then it make it visualy to everyone and then they know that the poeple in a car will have issue Soon.   That main idea 

1 : Get global vehicles Classname 
2 : Make Hitpoint  , Effect ,   ((( EX : Engine Start to Smoke at 55% of Damage. )))   Particle Effect Gray , Black , white.   ( Mini-hand Grenade Explosion ) at 1.0 dmg
                                                   ((    Fuel Tanks Has Chance to Explode  When Damage goes form 0.0 to 1.0 )) Attach LandMine To Gaz Tank with 5 Second Delay Before explosion

                                                    (( Tire  Exploding   Nothing happens Just particle Spash  (  Dirt or somethings )                                                  


So Ive been Trying to figure Out  how to Create  and i just realized I don't remember to do it. 

Here what Ive Started.

 

private["_vehicleClassName", "_Bodypart", "_value","_vehicleObject"]; // ( Maybe Missing some here ? )
_vehicleClassName = _this select 0;
_Bodypart = _this select 1;
_Value = _this select 2;
_vehicleObject = _this select 3;

_vehicleClassName setHitPointDamage [HitEngine, 0.00]  //( From This Part Im Lost )
if ((typeName _Bodypart) isEqualTo "_value") then 
{
    _vehicleObject setVectorDirAndUp _direction;    ((  Engine Location with Smoke UnderHood Popping Out ))
}
else 
{
    _vehicleObject setDir _direction;                        (( Wind affected effect))
};
if (_usePositionATL) then
{
    _vehicleObject setPosATL _position;          (( Smoke Persist in every Fucking way possible ))  If Damage Over 0.55
}
else

['BodyPart',_value,true]  // ( These are The HitBox For vehicles )
            Damage Kinds Vehicle


            value="HitFuel";
            value="HitBody";
            value="HitLFWheel";
            value="HitRFWheel";
            value="HitRBWheel";
            value="HitEngine";
            value="HitLBWheel";

 

 

 

Thanks

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.