Results 1 to 7 of 7

Thread: gizz46's Weaponselection dialog /hud

  1. #1

    gizz46's Weaponselection dialog /hud

    Hi, folks!

    this is my new mod/addon wich I want to present to the community .
    Well basicly its just a concept Im working on right now.



    menu works via the F key at the moment.
    firemodeselection and grendade selection wil be applied also later.

    But right now im on a point where i dont now how to handle some problems with the scripting
    So i could need some help from the community on this.
    i want that the different symbols only be displayed if the gun or item is in the players load out.

    also it would be cool to get some feedback and ideas from you on this.
    Last edited by gizz46; Apr 26 2012 at 15:03.

  2. #2
    First Lieutenant Kremator's Avatar
    Join Date
    Jun 8 2007
    Location
    Cambridge, UK
    Posts
    5,008
    Pretty cool. Good start!

  3. #3
    Private First Class gizz46's Avatar
    Join Date
    May 16 2011
    Location
    Germany
    Posts
    37
    Author of the Thread
    I,ve a problem with the dialog at the moment.
    Im trying to let the weaponsymbols only show up, if the weapon is realy in the soldiers inventory.
    so that the launcher symbol only shows up if the solder has a launcher!

    i know it has somthing to to with ctrlShow.
    but i dont know how to use this in a script.


    init.sqf
    Spoiler:


    keyspressef.sqf
    Spoiler:


    comR.sqf
    Spoiler:


    I found a script in the forum for handgun scanning and get it to work.
    now i have to get it work for all the other itmes like launchers, grenades ect.

    Spoiler:


    im very new to all that scripting stuff so it would be cool to gets some hints from you.
    Last edited by gizz46; Apr 28 2012 at 20:54.

  4. #4
    Private First Class gizz46's Avatar
    Join Date
    May 16 2011
    Location
    Germany
    Posts
    37
    Author of the Thread
    hi there,

    here is a new update of my weapon control dialog.



    i get it to work that the pistol symbol is only shown if the player is carrying one.
    My plan ist to get it work with all of the weapons but i dont know how to do that exactly.
    So if somebody knows how to check the player for primaryweapon or secondaryweapon it would be a great help.
    I've searched already in the forum but everything I tried didnt work.

    if (primaryWeapon == "") then {ctrlShow [45561, false]} else {ctrlShow [45561, true]}; ??????????

    maybe something like this ?

  5. #5
    if (player HaseWeapon X && X == primaryWeapon) then {...};
    Some like this, where X is base weapon class type for primary weapons

  6. #6
    Private First Class gizz46's Avatar
    Join Date
    May 16 2011
    Location
    Germany
    Posts
    37
    Author of the Thread
    if (player hasWeapon "x" == "primaryWeapon") then {ctrlShow [45561, true]} else {ctrlShow [45561, false]};

    I've tried it with that but didnt work.

  7. #7
    its wrong, I mean X its BASIC WEAPON CLASS
    Waht you want to do, ask here, or PM me?!

Similar Threads

  1. HUD Question
    By zentaos in forum TAKE ON HELICOPTERS - COMMUNITY PREVIEW
    Replies: 4
    Last Post: Sep 30 2011, 21:14
  2. Define Weaponselection with lobby parameters
    By Egosa-U in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 2
    Last Post: Sep 13 2010, 06:10
  3. No HUD ?
    By arthur666 in forum ARMA 2 & OA - TROUBLESHOOTING
    Replies: 1
    Last Post: Jul 6 2010, 01:17
  4. Drop down in dialog & map in dialog
    By Toasted Duckie in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 6
    Last Post: Nov 2 2009, 21:50
  5. The HUD
    By Nicholas in forum ARMA 2 & OA - SUGGESTIONS
    Replies: 21
    Last Post: Jul 3 2009, 03:01

Posting Permissions

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