Jump to content

black_hawk_mw2_87

Member
  • Content Count

    103
  • Joined

  • Last visited

  • Medals

Community Reputation

15 Good

1 Follower

About black_hawk_mw2_87

  • Rank
    Sergeant

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. black_hawk_mw2_87

    AI unit dies after a trigger

    There is a much easier solution, guys. 1. I put the AI near an object, for example a building. In his INIT field: 0 = this spawn {waitUntil {time > 0}; _this switchMove "Acts_SittingWounded_loop"}; {this disableAI _x} forEach ["ANIM", "TARGET", "AUTOTARGET", "MOVE"]; I set his HP at 49. This way he's wounded from the very beginning. I call him unit1. 2. I put the player and call him X. 3. I put triggers for every sentence of their conversation, depending on the needs of the scenario, so no matter how long the dialogue is, the AI dies after it. I put the texts of the conversations and change nothing in the triggers, except timer values. In all triggers I use: player distance unit1 <X, where X is the distance in meters. On Activation: the texts of the conversation. I put one last trigger with a delay of several seconds after the AI's last words, where: the condition remains the same, and On Activation: this switchmove "AinjPpneMstpSnonWnonDnon"; unit1 setDamage 1; and he falls down dead. Voilla! Sounds pretty simple, right? P.S. You can add a dying sound on the last trigger to make this scene look more realistic. Cheers!
  2. black_hawk_mw2_87

    AI unit dies after a trigger

    Thank you very much, guys. It's time for testing. I am working on a very scripted campaign right now, so wish me good luck. xD 🙂
  3. black_hawk_mw2_87

    AI unit dies after a trigger

    Thank you, but is this script: NameOfUnit setDamage 1, going to eliminate the AI unit when I trigger the sqf file? 🙂
  4. Hello, Community friends! I want to use a script and make a unit die WHEN a trigger is activated. My idea is to use an animation for the unit making him looks like wounded, lying down on the ground and after a conversation with the player, he dies. I would use the last trigger with text from that conversation, which should activate his death. What should I put in "On Activation" in the trigger? Thanks in advance. 🙂
  5. Hello, Community friends! I want to use a script and make a unit die WHEN a trigger is activated. My idea is to use an animation for the unit making him looks like wounded, lying down on the ground and after a conversation with the player, he dies. I would use the last trigger with text from that conversation, which should activate his death. What should I put in "On Activation" in the trigger? Thanks in advance. 🙂
  6. black_hawk_mw2_87

    Adding picture in briefing

    Absolutely! I forgot to share the results, sorry for that. I had to rework my file and it looks cool now! Thank you very much again! 🙂
  7. black_hawk_mw2_87

    Adding picture in briefing

    Thank you very much for the response! 🙂 I will test it soon. 🙂
  8. black_hawk_mw2_87

    Briefing/Task images

    What kind of code were you talking about? 🙂
  9. black_hawk_mw2_87

    Adding picture in briefing

    Yes, I tried this, too. I put only the createDiaryRecord script there, but nothing happens. There was only one code working, but but the pictures didn't show up. I received this error message when I opened the diary in game. Only the text was there, but not mine. It was the text from the example I used. When I use the example itself, it would work correctly. I will paste the code in a while.
  10. black_hawk_mw2_87

    Adding picture in briefing

    Yes, some error in the .sqf file. It won't load the Briefing at all. When I try to open it in game, it doesn't show up. Would you send me a ready file with an example? And tell me if I need to put it in the init.sqf file or try it in a different way? Because I've already tried within the init.sqf file. Cheers.
  11. black_hawk_mw2_87

    Adding picture in briefing

    Thank you, but I can't make it working, although I tried a lot of different options and variants. Nothing helped...
  12. black_hawk_mw2_87

    Briefing/Task images

    I was trying to use this code, but when I change the information, it won't show in game at all. I put it in init.sqf. I tried with the same description and with different pictures, located in images\name.jpg, but in game an error pops up that the picture can't be found. I pasted them directly in mission's folder and removed "images\…" from the line, so only the picture's name was left, but it's the same. I even converted the pictures into .paa files, but nothing worked. What's wrong here?!
  13. black_hawk_mw2_87

    Adding picture in briefing

    Hello, guys. How can I add a picture in the diary record? I know I must put a script in init.sqf, but it won't work for me. I receive some errors on the screen. I think I can't add the script directly to the diary module init field... Thanks in advance and cheers! 🙂
  14. black_hawk_mw2_87

    Weapon On Back - Action Menu

    Thank you for the response. The script above works the way I want! 🙂
  15. black_hawk_mw2_87

    Weapon On Back - Action Menu

    Thank you very much! I will test this ASAP! 🙂
×