Jump to content

Forums

  1. BOHEMIA INTERACTIVE

    1. BOHEMIA INTERACTIVE - NEWS

      Latest news from Bohemia Interactive

      122
      posts
    2. BOHEMIA INTERACTIVE - JOBS

      Are you a modder? Take your skills to a whole new level: become a game developer.

      1
      post
    3. BOHEMIA INTERACTIVE - GENERAL

      Discussion about Bohemia Interactive and its activities (other than OFP / Arma)

      13639
      posts
  2. FEATURED GAMES

    1. 2082
      posts
    2. 9358
      posts
    3. DAYZ   (106009 visits to this link)

    4. 1086878
      posts
    5. 849208
      posts
    6. YLANDS   (34805 visits to this link)

  3. MOBILE GAMES

    1. ARMA MOBILE OPS

      Build your base, put up some mighty defences and lead your military force through epic battles in Arma Mobile Ops, a military strategy game for iOS and Android.

      280
      posts
    2. 1321
      posts
    3. ARMA TACTICS

      Arma Tactics takes the best from the popular strategy genre... and goes mobile. The finest assets used in the critically acclaimed Armaâ„¢ series on PC now come to life on the Android mobile platform, in one of the best looking mobile games to date.

      215
      posts
    4. ARMA 2 FIRING RANGE

      Arma 2 firing range is the ultimate firing range simulation utilizing accurate high-poly weapon models used in the award winning Arma 2 tactical shooter videogame. Pick a weapon from dozens available.

      235
      posts
  4. BOHEMIA INCUBATOR

    1. 14
      posts
  5. OTHER BOHEMIA GAMES

    1. 4419
      posts
    2. TAKE ON MARS

      Take On Mars places you in the seat of a Rover Operator, allowing you to control the various, fully simulated mobile Rovers and stationary Landers. With this scientific arsenal at your disposal, you will work your way through the numerous Science Missions in each location, unlocking the secrets of Mars' distant past.

      2303
      posts
    3. 17520
      posts
    4. 9575
      posts
    5. 357658
      posts
    6. 617499
      posts
    7. 4976
      posts
    8. 151
      posts
  6. OFFTOPIC

    1. OFFTOPIC

      For discussions not strictly related to our games. Topics should ideally still be related in some way, for example: military, politics, science. Note that just because this is for offtopic it's not a case of "anything goes", silly topics and especially topics which don't have any scope for discussion will be closed/deleted.

      364224
      posts
  • Topics

  • Posts

    • the closure of armaholic has been a big disaster for arma 1 and 2 enjoyers
    • CRATERS Hi all, This topic gave me an idea for scripting craters after an explosion. I share this code you can add in an sqf or a trigger set to TRUE, server only should work.   I'll add a similar code in my "terrain & map interactive" MGI module.   Parameters:  none   MGI_hashAmmo = createHashMapFromarray (("true" configClasses (configFile / "cfgAmmo")) apply {[configName _x, getNumber (_x/"hit")]});
       
        ["MGI_craters", "onEachFrame", { _flyingProj = (8 allObjects 2); { if (isNil {_x getVariable "EH"} ) then { _x setVariable ["EH", _x addEventHandler ["explode", { params ["_proj","_pos","_vel"]; _pos deleteAt 2; private _hit = MGI_hashAmmo get typeOf _proj; private _calc = log ((sqrt vectorMagnitude _vel*sqrt _hit) max 1.1); [_proj,_calc,_pos] spawn { params ["_proj","_calc","_pos"]; sleep 0.1; private _crater = _pos nearestObject "#crater"; if (!isNull _crater) then { _pos = getPosASL _crater; private _surface = (configFile /"cfgSurfaces"/ (surfaceType _pos splitString "#")#0); private _depress = getTerrainHeightASL _pos - ((_calc/(getNumber (_surface / "surfaceFriction") max 1)*(getNumber (_surface /"dust") max 0.01 min 1)) min 3); _pos set [2,_depress]; (setTerrainHeight [[_pos],TRUE]) remoteExec ["call",2]; }; }; }] ]; }; } forEach _flyingProj; }] call BIS_fnc_addStackedEventHandler;   This code creates craters after explosion on ground (where Arma craters are). So, not on vehicles, not on buildings. Note1: Firing AP shell (armor piercing one) doesn't lead to explosion (Arma engine), so you need to fire HE shell for craters. Note2: at this time, craters after crash (planes) don't fire the code. this code is for EXPLODING PROJECTILES only.   Feedback are welcome! Have fun.      
    • If you yourself say you are acting as a bad guy, you are not simply giving your opinion.   I have gone that route, dont worry its common, I also had managers and the jist from them is, wait wait wait, what you mean you have to be the bad guy, you are just giving yourself permission to act the only way you know how. Learn the other ways.
    • Exactly what the title said. I want to end the mission and have the player and their side see their respective win/lose screen.  I have already read through this post but I don't think I can apply it, or I'm too dumb to figure it out. Either way, thanks in advance!
×