Jump to content

Cain_

Member
  • Content Count

    64
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

1 Follower

About Cain_

  • Rank
    Corporal
  1. With help of ArmA Wargames - http://arma-wargames.com A new large scale PvP map is being created. It focus on large scale battle tactics where a General is assigned various resources: Vehicles, Soldiers, Armor, Supplies which he can use as he please. Each town gives a fix set of resources forcing the tactics to become about key location rather than TDM. Each town will be regarded as an asset. Some towns play vital roll to gaining resources, others are important to connect supply routes, others are situated on a hill giving a strong foothold. In the video below the towns controlled by Russian forces (OPFOR) is shown. http://imageshack.us/a/img255/4445/newarma2map.png (995 kB)
  2. Still cant get it too work. It seems the displyAddEventHandler isn't able to be run. I already have 2 others to check if someones tries to access the chat and map. Its probly something with these that conflict. I runt it as my own host in MP when testing. I am gonna do a sensitivity analysis and check each part :)
  3. I got this far, but it simply wont close the map screen. :( waitUntil {sleep 0.01; (!(isNull (findDisplay 46)))}; (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 in actionKeys 'showMap') then {[] execVM 'noclick.sqf'}; false"]; waitUntil {sleep 0.01; (!(isNull (findDisplay 46)))}; (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 in actionKeys 'showMap') then {[] execVM {noclick.sqf}"] noclick.sqf sleep 0.1; waitUntil {sleep 0.05; (!(isNull (findDisplay 12)))}; (findDisplay 12) displayAddEventHandler ["MouseButtonDblClick",{closeDialog 0}]; ---------- Post added at 12:19 AM ---------- Previous post was Yesterday at 10:30 PM ---------- Go a little bit further. Problem is that nothing happens once the script starts. It simply dosnt understand i press down my mousebutton. waitUntil {sleep 0.01;(!(isNull (findDisplay 12)))}; (findDisplay 12) displayAddEventHandler ["onMouseButtonClick ","hint format ['%1',_this]; true"];
  4. Great!, Now i just need to find the action to close the map screen. player closedisplay dosnt seem right. Isnt there just a Player presskey "M" command? or the forceMap show ? whats the opposite to show? 46 is main display, anyone know the nubmer for map display?
  5. Hello again. I would like to disable the abillity to doubble click on the map and make new markers. I worked out that i need map onDoubleClick The problem is I have no idea how this is used. http://community.bistudio.com/wiki/onDoubleClick player map onDoubleClick {execVM "exit.sqf"}; etc dosnt work. Im using Squint so I can see if its working or not. Thanks guys! Friday soon!
  6. Nice, i was just looking for this script!
  7. thanks guys. Id send you flowers but I have no money :) :bounce3::bounce3:
  8. I never could get it to run on my x64 system, says program is 32 bit. :confused: jesus it works now :) thanks!
  9. What do you mean by Functions Module first? All vital scrips and then put this line at the end? I copied and pasted the stuff you wrote there but nothing comes up. This is what my init.sqf looks like. I get no errors nor any text :j: sleep 0.5; waitUntil {sleep 0.02; (!(isNull (findDisplay 46)))}; (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 in actionKeys 'Chat') then { true } else { false };"]; waitUntil {sleep 0.01; (!(isNull (findDisplay 46)))}; (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 in actionKeys 'showMap') then { true } else { false };"]; if (rank player =="Private" ) then {[] execVM "Private.sqs"}; if (rank player =="Sergeant" ) then {[] execVM "Sergeant.sqs"}; [] execVM "Distance_To_Team.sqf"; player addAction ["Surrender","Surrender.sqf"]; player setVariable ["BIS_noCoreConversations", true]; waitUntil{!(isNil "BIS_fnc_init")}; [str ("Mission Name Here") , str(date select 1) + "." + str(date select 2) + "." + str(date select 0), str("Mission Location Here")] spawn BIS_fnc_infoText;
  10. Thanks guys, got it working. :) :bounce3::bounce3:
  11. exec not execVM with execVM I get the whole file as an error
  12. Im call this script from init.sqf, this script is also in sqf. When i run it I get an error saying "Error Generic Error in expression sleep 1.0" What have i done wrong now? team_score=0; while {team_score<=180} do { if (player distance fire_team_a<= 50) then {team_score=team_score+1;]}; hint "Team Score"; team_score=team_score+1; sleep 1.0; };
  13. showHUD=0; solved the problem removing the weapon status bar incase any one uses the search function!
×