Jump to content

cobra4v320

Member
  • Content Count

    1370
  • Joined

  • Last visited

  • Medals

  • Medals

Everything posted by cobra4v320

  1. Thanks Mike84 for the reply, I have already read that tutorial and tried the mission. The parameters in that mission do not work. The parameters I posted at the top and the init.sqf file I posted all work 100%. I was just looking for a way to consolidate the scripting down to something simpler.
  2. @kylania That is correct however if you are using the new Class Params, param1 and param2 should be called by paramsArray 0 and paramsArray 1. When I use your method none of them work anymore. It looks like I will be using this for a while until I can figure it out. viewparam = (paramsArray select 0); if (viewparam == 0) then {setViewDistance 1000}; if (viewparam == 1) then {setViewDistance 2000}; if (viewparam == 2) then {setViewDistance 3000}; if (viewparam == 3) then {setViewDistance 4000}; if (viewparam == 4) then {setViewDistance 5000}; if (viewparam == 5) then {setViewDistance 6000}; if (viewparam == 6) then {setViewDistance 7000}; if (viewparam == 7) then {setViewDistance 8000}; if (viewparam == 8) then {setViewDistance 9000}; if (viewparam == 9) then {setViewDistance 10000}; grassparam = (paramsArray select 1); if (grassparam == 0) then {setTerrainGrid 50}; if (grassparam == 1) then {setTerrainGrid 25}; if (grassparam == 2) then {setTerrainGrid 12.5}; if (grassparam == 3) then {setTerrainGrid 6.25}; if (grassparam == 4) then {setTerrainGrid 3.125}; environment = (paramsarray select 2); if (environment == 0) then {enableEnvironment true}; if (environment == 1) then {enableEnvironment false}; timeparam = (paramsArray select 3); if (timeparam == 0) then {skiptime 0}; if (timeparam == 1) then {skiptime 1}; if (timeparam == 2) then {skiptime 2}; if (timeparam == 3) then {skiptime 3}; if (timeparam == 4) then {skiptime 4}; if (timeparam == 5) then {skiptime 5}; if (timeparam == 6) then {skiptime 6}; if (timeparam == 7) then {skiptime 7}; if (timeparam == 8) then {skiptime 8}; if (timeparam == 9) then {skiptime 9}; if (timeparam == 10) then {skiptime 10}; if (timeparam == 11) then {skiptime 11}; if (timeparam == 12) then {skiptime 12}; if (timeparam == 13) then {skiptime 13}; if (timeparam == 14) then {skiptime 14}; if (timeparam == 15) then {skiptime 15}; if (timeparam == 16) then {skiptime 16}; if (timeparam == 17) then {skiptime 17}; if (timeparam == 18) then {skiptime 18}; if (timeparam == 19) then {skiptime 19}; if (timeparam == 20) then {skiptime 20}; if (timeparam == 21) then {skiptime 21}; if (timeparam == 22) then {skiptime 22}; if (timeparam == 23) then {skiptime 23};
  3. getPosASL nameofunit select 2 == 0 you would use getPosATL for land
  4. cobra4v320

    US Support

    To delete the high command module wouldnt you just use the deletevehicle command?
  5. I found that you can shorten some of the init.sqf lines to these: init.sqf setViewDistance (paramsArray select 0); [color="SeaGreen"]this works[/color] setTerrainGrid (paramsArray select 1); [color="SeaGreen"]this works[/color] enableEnvironment (paramsarray select 2); [color="Red"]this does not work[/color] skiptime (paramsArray select 3); [color="Red"]this does not work[/color] description.ext class Params { class View { title="View Distance"; values[]={1000,2000,3000,4000,5000,6000,7000,8000,9000,10000}; texts[]={"1000m","2000m","3000m","4000m","5000m","6000m","7000m","8000m","9000m","10000m"}; default = 3000; }; class Grass { title="Grass"; values[]={50,25,12.5,6.25,3.125}; texts[]={"No Grass", "Default MP", "Default SP", "More", "Max"}; default = 12.25; }; class Environment { title="Enable Environment"; values[]={true,false}; texts[]={"True","False"}; default = true; }; class Missiontime { title="Time Of Day"; values[]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23}; texts[]={"00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"}; default=5; }; };
  6. cobra4v320

    US Support

    @tractorking this setVariable ["settings",[["ambush", "attack_location", "destroy", "defend_location", "escort", "patrol", "rescue", "search", "trap"], "true", ["Razor", ["Razor"], "H.Q.", ["HQ"]], "30", "true", "30", "0.7", [300, 700]]]; Configure SOM module with custom settings. Must run during the first 2 seconds of a mission. //List of secop missions. ["ambush", "attack_location", "defend_location", "destroy", "escort", "patrol", "rescue", "search", "trap"] //Enable or disable HQ. //Default: true //Team text, team speech, H.Q. text, H.Q. speech. //Default: ["ALPHA", ["Alpha"], "H.Q.", ["HQ"]] //Delay in seconds before starting random SecOps selection. Only seems to affect the first secops. //Default: 30 //Should an automatic Reinforce be triggered when there are casualties? //Default is true. //Delay between secop missions //Default: 30 //From 0 to 1. A 0 means no secops starting. With 1 they do start. Some kind of chance variable? //Default: 0.7 //Min Max distance of sec ops. //Default: [300, 700] The one that you would need to change is the delay between secop missions. Let me know if the above information helps. ---------- Post added at 02:00 AM ---------- Previous post was at 01:54 AM ---------- @Lucilk The class params are multiplayer options. For example if you wanted to turn off the environment = no animals or environmental noises you would have that option. Other options could be time of day, weather, viewdistance, score to win, turning the grass off or to a higher detail. You have to select the options you want under parameters before the start of the mission. Not sure if an admin can do it while the game is running. Here is the link for the description.ext not sure if you have seen this before. Later tonight I will throw them into your description.ext file and send you the link.
  7. cobra4v320

    ArmA Editing Guide - English Version

    @halleyelec Why dont you print off the guide or put it on disk and take to office depot (in the U.S.) and have them do it?
  8. cobra4v320

    Radio?

    you have to create a description.ext file. Go into notepad and then save it as description.ext Here is a link for further instructions. Description.ext
  9. The above information works fine. Try testing in an empty map (utes) with no addons. Make sure that you call the SOM support with the radio, using keys 0-0-2, then you should get a message on the upper right corner of the screen. Then you have to press spacebar, go to communications, select the support that you want.
  10. cobra4v320

    How Do I.......

    The file should go to documents\Arma2otherprofiles\yourname\MPMissions Im using Vista not sure about XP. Kylania beat me to it.....however I have two folders missions and MPMissions. I think its better to put it under MPmissions because you can check your parameters, edit/test, and play.
  11. cobra4v320

    US Support

    @tractorking The SOM should already be turned off in the support script. If you look under lkscripts\support_init it shows the som as: logicSOM setVariable ["settings", [[], true, nil, nil, false]] Meaning that the SOM missions are turned off. Here is the link to the SOM Module discussion. A lot of good information there. @JTF -2 Psycho The SOM currently does not work on a dedicated server read here. @Lucilk Have you thought about using the new Class Params to add more options to the support package. Read here.
  12. cobra4v320

    new param system

    Okay I figured out how to get it to work: Description.ext: class Params { class View { title="View Distance"; values[]={0,1,2,3,4,5,6,7,8,9}; texts[]={"1000m","2000m","3000m","4000m","5000m","6000m","7000m","8000m","9000m","10000m"}; default = 0; }; class Grass { title="Grass"; values[]={0,1,2,3,4}; texts[]={"No Grass", "Default MP", "Default SP", "More", "Max"}; default = 0; }; class Environment { title="Enable Environment"; values[]={0,1}; texts[]={"True","False"}; default = 1; }; class Missiontime { title="Time Of Day"; values[]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23}; texts[]={"00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"}; default=5; }; }; Init.sqf viewparam = (paramsArray select 0); if (viewparam == 0) then {setViewDistance 1000}; if (viewparam == 1) then {setViewDistance 2000}; if (viewparam == 2) then {setViewDistance 3000}; if (viewparam == 3) then {setViewDistance 4000}; if (viewparam == 4) then {setViewDistance 5000}; if (viewparam == 5) then {setViewDistance 6000}; if (viewparam == 6) then {setViewDistance 7000}; if (viewparam == 7) then {setViewDistance 8000}; if (viewparam == 8) then {setViewDistance 9000}; if (viewparam == 9) then {setViewDistance 10000}; grassparam = (paramsArray select 1); if (grassparam == 0) then {setTerrainGrid 50}; if (grassparam == 1) then {setTerrainGrid 25}; if (grassparam == 2) then {setTerrainGrid 12.5}; if (grassparam == 3) then {setTerrainGrid 6.25}; if (grassparam == 4) then {setTerrainGrid 3.125}; environment = (paramsarray select 2); if (environment == 0) then {enableEnvironment true}; if (environment == 1) then {enableEnvironment false}; timeparam = (paramsArray select 3); if (timeparam == 0) then {skiptime 0}; if (timeparam == 1) then {skiptime 1}; if (timeparam == 2) then {skiptime 2}; if (timeparam == 3) then {skiptime 3}; if (timeparam == 4) then {skiptime 4}; if (timeparam == 5) then {skiptime 5}; if (timeparam == 6) then {skiptime 6}; if (timeparam == 7) then {skiptime 7}; if (timeparam == 8) then {skiptime 8}; if (timeparam == 9) then {skiptime 9}; if (timeparam == 10) then {skiptime 10}; if (timeparam == 11) then {skiptime 11}; if (timeparam == 12) then {skiptime 12}; if (timeparam == 13) then {skiptime 13}; if (timeparam == 14) then {skiptime 14}; if (timeparam == 15) then {skiptime 15}; if (timeparam == 16) then {skiptime 16}; if (timeparam == 17) then {skiptime 17}; if (timeparam == 18) then {skiptime 18}; if (timeparam == 19) then {skiptime 19}; if (timeparam == 20) then {skiptime 20}; if (timeparam == 21) then {skiptime 21}; if (timeparam == 22) then {skiptime 22}; if (timeparam == 23) then {skiptime 23};
  13. why dont you post the script?
  14. this moveInCargo [vehiclename, 0]; This is for moving into a specific seat of a vehicle. Example would be the c130 which has 25 seats.
  15. cobra4v320

    new param system

    Tophe tried your mission here the parameters don't even show up under the MP mission setup. Im using beta 59025 Im assuming that is not the problem? Here is my new description.ext: class Params { class Missiontime { //paramsArray[2] title="Time Of Day"; values[]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23}; texts[]={"00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"}; default=5; }; class Grass { //paramsArray[3] title = "Grass"; values[]={0,1,2,3,4}; texts[]={"No Grass", "Default MP", "Default SP", "More", "Max"}; default=0; }; class View { //paramsArray[4] title = "View distance"; values[]={0,1,2,3,4,5,6,7,8,9}; texts[]={"1000 m","2000 m","3000 m","4000 m","5000 m","6000 m","7000 m","8000 m","9000 m","10000 m"}; default=2; }; class Environment { //paramsArray[5] title = "Enable Environment"; values[]={0,1}; texts[]={"true","false"}; default=1; }; }; Here is my init.sqf: timeparam = paramsArray select 2; if (timeparam == 0) then {skiptime 0}; if (timeparam == 1) then {skiptime 1}; if (timeparam == 2) then {skiptime 2}; if (timeparam == 3) then {skiptime 3}; if (timeparam == 4) then {skiptime 4}; if (timeparam == 5) then {skiptime 5}; if (timeparam == 6) then {skiptime 6}; if (timeparam == 7) then {skiptime 7}; if (timeparam == 8) then {skiptime 8}; if (timeparam == 9) then {skiptime 9}; if (timeparam == 10) then {skiptime 10}; if (timeparam == 11) then {skiptime 11}; if (timeparam == 12) then {skiptime 12}; if (timeparam == 13) then {skiptime 13}; if (timeparam == 14) then {skiptime 14}; if (timeparam == 15) then {skiptime 15}; if (timeparam == 16) then {skiptime 16}; if (timeparam == 17) then {skiptime 17}; if (timeparam == 18) then {skiptime 18}; if (timeparam == 19) then {skiptime 19}; if (timeparam == 20) then {skiptime 20}; if (timeparam == 21) then {skiptime 21}; if (timeparam == 22) then {skiptime 22}; if (timeparam == 23) then {skiptime 23}; grassparam = paramsArray select 3; if (grassparam == 0) then {setTerrainGrid 50}; if (grassparam == 1) then {setTerrainGrid 25}; if (grassparam == 2) then {setTerrainGrid 12.5}; if (grassparam == 3) then {setTerrainGrid 6.25}; if (grassparam == 4) then {setTerrainGrid 3.125}; viewparam = paramsArray select 4; if (viewparam == 0) then {setviewdistance 1000}; if (viewparam == 1) then {setviewdistance 2000}; if (viewparam == 2) then {setviewdistance 3000}; if (viewparam == 3) then {setviewdistance 4000}; if (viewparam == 4) then {setviewdistance 5000}; if (viewparam == 5) then {setviewdistance 6000}; if (viewparam == 6) then {setviewdistance 7000}; if (viewparam == 7) then {setviewdistance 8000}; if (viewparam == 8) then {setviewdistance 9000}; if (viewparam == 9) then {setviewdistance 10000}; environmentparam = paramsArray select 5; if (environmentparam == 0) then {enableenvironment true}; if (environmentparam == 1) then {enableenvironment false};
  16. cobra4v320

    new param system

    Thanks kju, However I have already read that before posting, the mission and tutorial are not very good. I will continue to troubleshoot but as I said before if anyone can spot the obvious please let me know. ---------- Post added at 08:27 AM ---------- Previous post was at 07:55 AM ---------- I have also tried using this in the init.sqf if (isServer) then { if (!isNil "param2") then { skiptime param2; } else { skiptime 16; }; }; if (isServer) then { if (!isNil "param3") then { setviewdistance param3; } else { setviewdistance 3000; }; }; if (isServer) then { if (!isNil "param4") then { setterraingrid param4; } else { setterraingrid 25; }; }; Also tried this: skiptime (paramsArray select 2); setviewdistance (paramsArray select 3); setterraingrid (paramsArray select 4);
  17. cobra4v320

    new param system

    Need some help with the new class param: Here is my init: skiptime (paramsArray select 2); switch (param3) do { case 0: {setviewdistance 1000}; case 1: {setviewdistance 2000}; case 2: {setviewdistance 3000}; case 3: {setviewdistance 4000}; case 4: {setviewdistance 5000}; case 5: {setviewdistance 6000}; case 6: {setviewdistance 7000}; case 7: {setviewdistance 8000}; case 8: {setviewdistance 9000}; case 9: {setviewdistance 10000}; }; switch (param4) do { case 0: {setTerrainGrid 50}; case 1: {setterraingrid 25}; case 2: {setterraingrid 6.25}; }; Here is my description.ext: class Params { class DayTime { title = "Time Of Day"; values[] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24}; texts[] = {"1:00", "2:00", "3:00", "4:00", "5:00", "6:00", "7:00", "8:00", "9:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00", "24:00"}; default = 16; }; class Distance { title = "View Distance:"; values[] = {1,2,3,4,5,6,7,8,9,10}; texts[] = {"1000m","2000m","3000m","4000m","5000m","6000m","7000m","8000m","9000m","10000m"}; default = 3; }; class Grass { title = "Grass Options"; values[] = {1,2,3}; texts[] = {"No Grass", "Medium", "High"}; default = 2; }; }; The above is not working for me, does anyone see anything obvious, or something that I missed? Im also using Beta 59025.
  18. I don't know but i think it depends on the specific addon. I don't have the apache addon but when i use Vopsound my missions can't be played if the player doesn't have Vopsound as well. So i recommend to use modfolders together with different shortcuts: explanation. All you would have to do is delete "vops_c_guns" out of the mission.sqm
  19. All the us weapons put into description.ext class Weapons { class G36a {count = 6;}; class G36C {count = 6;}; class G36_C_SD_eotech {count = 6;}; class G36K {count = 6;}; class M1014 {count = 6;}; class M16A2 {count = 6;}; class M16A2GL {count = 6;}; class M16A4 {count = 6;}; class M16A4_GL {count = 6;}; class M16A4_ACG_GL {count = 6;}; class M16A4_ACG {count = 6;}; class M4A1 {count = 6;}; class M4A1_HWS_GL {count = 6;}; class M4A1_HWS_GL_camo {count = 6;}; class M4A1_HWS_GL_SD_Camo {count = 6;}; class M4A1_RCO_GL {count = 6;}; class M4A1_Aim {count = 6;}; class M4A1_Aim_camo {count = 6;}; class M4A1_AIM_SD_camo {count = 6;}; class MP5A5 {count = 6;}; class MP5SD {count = 6;}; class M8_carbine {count = 6;}; class M8_carbineGL {count = 6;}; class M8_compact {count = 6;}; class Mk_48 {count = 6;}; class M240 {count = 6;}; class M249 {count = 6;}; class M8_SAW {count = 6;}; class DMR {count = 6;}; class M107 {count = 6;}; class M24 {count = 6;}; class M40A3 {count = 6;}; class M4SPR {count = 6;}; class M8_sharpshooter {count = 6;}; class Colt1911 {count = 6;}; class Javelin {count = 6;}; class SMAW {count = 6;}; class Stinger {count = 6;}; class Binocular {count = 6;}; class NVGoggles {count = 6;}; class Laserdesignator {count = 6;}; }; class Magazines { class 30Rnd_556x45_G36 {count = 36;}; class 30Rnd_556x45_G36SD {count = 36;}; class 8Rnd_B_Beneli_74Slug {count = 54;}; class 30Rnd_556x45_Stanag {count = 36;}; class 30Rnd_556x45_StanagSD {count = 36;}; class 30Rnd_9x19_MP5 {count = 36;}; class 30Rnd_9x19_MP5SD {count = 36;}; class 1Rnd_HE_M203 {count = 36;}; class FlareWhite_M203 {count = 36;}; class FlareGreen_M203 {count = 36;}; class FlareRed_M203 {count = 36;}; class FlareYellow_M203 {count = 36;}; class 1Rnd_Smoke_M203 {count = 36;}; class 1Rnd_SmokeRed_M203 {count = 36;}; class 1Rnd_SmokeGreen_M203 {count = 36;}; class 1Rnd_SmokeYellow_M203 {count = 36;}; class 100Rnd_556x45_BetaCMag {count = 18;}; class 100Rnd_762x51_M240 {count = 18;}; class 200Rnd_556x45_M249 {count = 18;}; class 20Rnd_762x51_DMR {count = 36;}; class 10Rnd_127x99_m107 {count = 30;}; class 5Rnd_762x51_M24 {count = 36;}; class 20Rnd_556x45_Stanag {count = 36;}; class 7Rnd_45ACP_1911 {count = 18;}; class Javelin {count = 6;}; class M136 {count = 6;}; class SMAW_HEAA {count = 6;}; class SMAW_HEDP {count = 6;}; class Stinger{count = 6;}; class HandGrenade {count = 12;}; class HandGrenade_West {count = 12;}; class SmokeShell {count = 12;}; class SmokeShellRed {count = 12;}; class SmokeShellGreen {count = 12;}; class SmokeShellYellow {count = 12;}; class TimeBomb {count = 6;}; class PipeBomb {count = 6;}; class Mine {count = 6;}; class HandGrenade_Stone {count = 12;}; class Laserbatteries {count = 6;}; };
  20. cobra4v320

    Ambient Combat Module

    Right out of the modules.pbo //Shut down if the group does not contain at least one other unit. if ((count _syncObjs) == 0) exitWith {debugLog "Log: [ACM] Shutting down. No units were synchronized to the ACM."}; //Only the first unit's group is checked. We only allow one group synchronized with the ACM.
  21. cobra4v320

    Ambient Combat Module

    I believe the ACM module only works if you have more than one member in your group. How do you have your group setup?
  22. cobra4v320

    quick question

    I don't like using H's especially when there are helicopters flying around they tend to land on them. Thanks Gaia for that info.
  23. cobra4v320

    Triggers

    Condition !alive NPC Activation hint "the target was killed"
  24. cobra4v320

    quick question

    Attach it to a gamelogic, I tested this and hit it with a HMMWV and I hopped right over it, folding table never moved. OR Create an empty ammobox and put it underground this setpos [(getpos this select 0), (getpos this select 1), -.5] Your table this attachto [ammoboxname,[0,0,-.1]] Hit with truck and never moved.
  25. cobra4v320

    quick question

    Have you tried the attachto command?
×