Results 1 to 2 of 2

Thread: Simple map click for grenade explosions

  1. #1

    Simple map click for grenade explosions

    Hey everyone, every couple of weekends some friends and I get together at my house and have a LAN. Our favourite LAN game is ArmA II: OA. We set up grossly one sided missions against waves and waves of AI soldiers & vehicles

    I've searched all over for a simple script that would allow the host, or whoever of a LAN game to open his map, click and spawn a cluster of explosions on the map click location. A friend of mine who has scripting experience sent me a script, that I can callup via an addaction, but it never works. The friend who sent it to me is back in Afghanistan now and probably doesn't have computer access because I can't get a hold of him. Anyway, I was hoping someone on here can have a look at the thing and tell me what I need to change to have this work or point me to a similar working script that I can call up in MP!

    Thanks!

    Code:
    _coordinate = [_this select 0, _this select 1];
    
    _radius=150;
    _Bombs=random 20;
    
    
    
    _jackup=100;
    
    _Nill = "G_40mm_HE" createvehicle [(_coordinate select 0) , (_coordinate select 1) , 100+random 500];
    for "_i" from 0 to (10+_Bombs) do
    {
    _Nill = "G_40mm_HE" createvehicle [(_coordinate select 0) - random _radius , (_coordinate select 1) - random _radius, _jackup+random 500];
    _Nill = "G_40mm_HE" createvehicle [(_coordinate select 0) + random _radius , (_coordinate select 1) + random _radius, 100+random 500];
    _Nill = "G_40mm_HE" createvehicle [(_coordinate select 0) , (_coordinate select 1) , 100+random 500];
    _jackup=_jackup+20;
    };
    hint "Grenade Vollet Incoming!";
    onMapSingleClick "";
    exit;

  2. #2
    Why not use the simple support module.

    Just place it on the map from the editor. In game just press 0,8 and you get a list of options. It will also accept map clicks as well as real World co-ords.



    I did rework the script but I'm not sure about how it will work in MP.
    To use it place a trigger on the map
    0 x 0 size
    repeating

    cond visibleMap

    on act null=[] execvm "bomb.sqf"

    Spoiler:

Similar Threads

  1. Map click explosion
    By ArmAriffic in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 7
    Last Post: Feb 12 2013, 17:26
  2. Map Click Marker
    By Warlord_1011 in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 2
    Last Post: Dec 24 2009, 16:39
  3. two click map
    By Ebolavirus in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 4
    Last Post: Aug 23 2009, 13:45
  4. Click map icon?
    By Heatseeker in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 3
    Last Post: Jul 6 2009, 21:23
  5. On Map Click Artillery Help
    By nickk13579 in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 7
    Last Post: Aug 4 2007, 10:10

Posting Permissions

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