Cain_
Member-
Content Count
64 -
Joined
-
Last visited
-
Medals
Everything posted by Cain_
-
ArmA2: Operation Arrowhead Impressions - ALL OA Impressions/Videos/Screenies Here
Cain_ replied to Placebo's topic in ARMA 2 & OA - GENERAL
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) -
I wish to disable the ability to type in multiplayer. Also if someone can explain what this really means. http://community.bistudio.com/wiki/disableConversation does it mean you can talk through the microphone in the group channel but on no other? Thanks Cain
-
ArmA2: Operation Arrowhead Impressions - ALL OA Impressions/Videos/Screenies Here
Cain_ replied to Placebo's topic in ARMA 2 & OA - GENERAL
RU6tkQXXqi8 http://cfarma2.com -
ArmA2: Operation Arrowhead Impressions - ALL OA Impressions/Videos/Screenies Here
Cain_ replied to Placebo's topic in ARMA 2 & OA - GENERAL
qcj0QGkkGgM http://cfarma2.com -
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!
-
Disable doubleclick on map
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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 :) -
Disable doubleclick on map
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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"]; -
Disable doubleclick on map
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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? -
GeneralCarver Revive Script
Cain_ replied to GeneralCarver's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Nice, i was just looking for this script! -
need help with text on intro
Cain_ replied to natethegreat's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
thanks guys. Id send you flowers but I have no money :) :bounce3::bounce3: -
Getting sleep to work!
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I never could get it to run on my x64 system, says program is 32 bit. :confused: jesus it works now :) thanks! -
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; };
-
need help with text on intro
Cain_ replied to natethegreat's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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; -
Getting sleep to work!
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thanks guys, got it working. :) :bounce3::bounce3: -
Getting sleep to work!
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
exec not execVM with execVM I get the whole file as an error -
Any way to remove weapon Status?
Cain_ posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Im wondering if its possible to remove the weapon status bar in the top right corner? By scripting ofcourse, not through addons. Is it possible? Thanks Cain -
Any way to remove weapon Status?
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
showHUD=0; solved the problem removing the weapon status bar incase any one uses the search function! -
Init.sqf will only run one script
Cain_ posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I got a problem. Im making a mission where I am removing the chat function and the abillity to press map. The problem is that the init.sqf is only able to load 1 command line. The problem is that i only disables the chat, but dosnt show the hint. If i put the hint in front like this i only get the hint and chat is working. Since i want disable the abillity to press M to see map and score i tried (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 in actionKeys 'Map') then { true } else { false };"] but it dosnt work :( -
Init.sqf will only run one script
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
It says "Please remove Current ArmA 2 user from Computer" ;) Now im off able to make my masterpiece! = more threads of this sort will come :) cain2001 was my old username, all my post were from this subforum :) -
Init.sqf will only run one script
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Even if I might be up for the biggest Scripting Noob Award I have to say that I am not mentally retarded, at least now when being sober:) I am 100% sober when typing this. Step 1: added -showScriptErrors to my shortcut Step 2: re saved my SQF file into SQS Step 3: tried to run script again => nothing worked, didnt even get any errors. Step 4: Express my happies in a gained roar crushing which if the sound travels at 342 m/s should hit you guys any second now. I used to script back in OFP but now I cant even get a hint message to show :). *Iam modding the mission in MP editor and playing "live" *I have only placed 3 soldiers in the game editor and nothing else *Iam a Swede, maybe we are ment to fail? ---------- Post added at 06:43 PM ---------- Previous post was at 06:35 PM ---------- We made progress people we have finally gotten somewhere. Iam now pround to announce I have gotten my first Error Message -
Init.sqf will only run one script
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
ye i dont want ppl to see their score in map menu :). I cleared out all shit but it still gives me problems. I remember editing in OFP. I used to get tons of errors ingame when something was "typed" wrong. In ArmA i get nothing, it just dont work. -
Camera.sqs - a couple of questions
Cain_ replied to Stuntman's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
help me out in my thread stunti and ill help you out! :) -
Any way to remove weapon Status?
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Im making a mission where only the team leader has the ability to watch the map. Thus removing it and also removing the ability to actual find out if you killed someone. -
Any way to remove weapon Status?
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
thanks! Maybe I can disable the map key just like I did with the chat? -
Any way to remove weapon Status?
Cain_ replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I was thinking. Can I add some kind of text (image) and make the weapon status bar a blur? Whats the easiers way to do this? I want it to stick there for the whole game! ---------- Post added at 11:50 PM ---------- Previous post was at 11:00 PM ---------- I would also like to know if I can remove the statistics menu in the map screen (press M). I simply dont want people to know if they killed someone. I also want to put in the ini.sqs a script that detects a soldier surrendering removing all his weapons. Is there a whay where i can check players ID and give each special weapons for examle? Im trying to make a realism pvp mission if anyone is wondering :)