-
Content Count
3 -
Joined
-
Last visited
-
Medals
Community Reputation
10 GoodAbout Faulk_Wulf
-
Rank
Rookie
-
Trouble with Switch statement in SQF.
Faulk_Wulf posted a topic in ARMA 2 & OA : ADDONS - Configs & Scripting
Right, so why doesn't this work? No errors, returns only a pilot as recruitable when playing as West (haven't even checked East and Guer yet). I presume it's returning Pilot 3, the last Pilot in the array entry. Why? Why isn't it filling my array? _RECRUIT_LIST set []; _RECRUIT_LIST = switch (side player) do { case west: { "US_Soldier_AA_EP1", "US_Soldier_AAT_EP1", "US_Soldier_AHAT_EP1", "US_Soldier_AAR_EP1", "US_Soldier_AMG_EP1", "US_Soldier_AT_EP1", "US_Soldier_HAT_EP1", "US_Soldier_AR_EP1", "US_Soldier_Engineer_EP1", "US_Soldier_GL_EP1", "US_Soldier_MG_EP1", "US_Soldier_Marksman_EP1", "US_Soldier_Medic_EP1", "US_Soldier_EP1", "US_Soldier_LAT_EP1", "US_Soldier_B_EP1", "US_Soldier_SL_EP1", // MERCS "Mercenary_Default0", "Mercenary_Default1", "Mercenary_Default2", "Mercenary_Default3", "Mercenary_Default4", "Mercenary_Default5", "Mercenary_Default6", "Mercenary_Default7", "Mercenary_Default8", "Mercenary_Default9", "Mercenary_Default10", "Mercenary_Default11", "Mercenary_Default12", "Mercenary_Default13", "Mercenary_Default14", "Mercenary_Default15", "Mercenary_Default16", "Mercenary_Default17", "Mercenary_Default18", "Mercenary_Default19", "Mercenary_Default20", "Mercenary_Default20b", "Mercenary_Default21", "Mercenary_Default22", "Mercenary_Default23", "Mercenary_Default24", "Mercenary_Default25", "Mercenary_Default26", "Mercenary_Default27", "Mercenary_Default28", // WOODLAND MERCS "WDL_Mercenary_Default0", "WDL_Mercenary_Default1", "WDL_Mercenary_Default2", "WDL_Mercenary_Default3", "WDL_Mercenary_Default4", "WDL_Mercenary_Default5", "WDL_Mercenary_Default6", "WDL_Mercenary_Default7", "WDL_Mercenary_Default8", "WDL_Mercenary_Default9", "WDL_Mercenary_Default10", "WDL_Mercenary_Default11", "WDL_Mercenary_Default12", "WDL_Mercenary_Default13", "WDL_Mercenary_Default14", "WDL_Mercenary_Default15", "WDL_Mercenary_Default16", "WDL_Mercenary_Default16", // PILOTS "Pilot_Default1", "Pilot_Default2", "Pilot_Default3" }; case east: { "MVD_Soldier", "MVD_Soldier_AT", "MVD_Soldier_GL", "MVD_Soldier_MG", "MVD_Soldier_Marksman", "MVD_Soldier_Sniper", "MVD_Soldier_TL", "RUS_Commander", "RUS_Soldier1", "RUS_Soldier2", "RUS_Soldier3", "RUS_Soldier_GL", "RUS_Soldier_Marksman", "RUS_Soldier_Sab", "RUS_Soldier_TL", "RU_Commander", "RU_Soldier", "RU_Soldier2", "RU_Soldier_AA", "RU_Soldier_AR", "RU_Soldier_AT", "RU_Soldier_Crew", "RU_Soldier_GL", "RU_Soldier_HAT", "RU_Soldier_LAT", "RU_Soldier_Light", "RU_Soldier_MG", "RU_Soldier_Marksman", "RU_Soldier_Medic", "RU_Soldier_Officer", "RU_Soldier_Pilot", "RU_Soldier_SL", "RU_Soldier_Sniper", "RU_Soldier_SniperH", "RU_Soldier_Spotter", "RU_Soldier_TL" }; case guer: { "G_Mercenary_Default0", "G_Mercenary_Default1", "G_Mercenary_Default2", "G_Mercenary_Default3", "G_Mercenary_Default4", "G_Mercenary_Default5", "G_Mercenary_Default6", "G_Mercenary_Default7", "G_Mercenary_Default8", "G_Mercenary_Default9", "G_Mercenary_Default10", "G_Mercenary_Default11", "G_Mercenary_Default12", "G_Mercenary_Default13", "G_Mercenary_Default14", "G_Mercenary_Default15", "G_Mercenary_Default16", "G_Mercenary_Default17", "G_Mercenary_Default18", "G_Mercenary_Default19", "G_Mercenary_Default20", "G_Mercenary_Default20b", "G_Mercenary_Default21", "G_Mercenary_Default22", "G_Mercenary_Default23", "G_Mercenary_Default24", "G_Mercenary_Default25", "G_Mercenary_Default26", "G_Mercenary_Default27", "G_Mercenary_Default28", "G_WDL_Mercenary_Default0", "G_WDL_Mercenary_Default1", "G_WDL_Mercenary_Default2", "G_WDL_Mercenary_Default3", "G_WDL_Mercenary_Default4", "G_WDL_Mercenary_Default5", "G_WDL_Mercenary_Default6", "G_WDL_Mercenary_Default7", "G_WDL_Mercenary_Default8", "G_WDL_Mercenary_Default9", "G_WDL_Mercenary_Default10", "G_WDL_Mercenary_Default11", "G_WDL_Mercenary_Default12", "G_WDL_Mercenary_Default13", "G_WDL_Mercenary_Default14", "G_WDL_Mercenary_Default15", "G_WDL_Mercenary_Default16", "G_WDL_Mercenary_Default16", "GPilot_Default1", "GPilot_Default2", "GPilot_Default3" }; }; bon_recruit_recruitableunits = [_RECRUIT_LIST]; The original was simply: bon_recruit_recruitableunits = ["US_Soldier_AA_EP1", "US_Soldier_AAT_EP1", "US_Soldier_AHAT_EP1", "US_Soldier_AAR_EP1", "US_Soldier_AMG_EP1", "US_Soldier_AT_EP1", "US_Soldier_HAT_EP1", "US_Soldier_AR_EP1", "US_Soldier_Engineer_EP1", "US_Soldier_GL_EP1", "US_Soldier_MG_EP1", "US_Soldier_Marksman_EP1", "US_Soldier_Medic_EP1", "US_Soldier_EP1", "US_Soldier_LAT_EP1", "US_Soldier_B_EP1", "US_Soldier_SL_EP1"]; The file is a .sqf file, and the original/back-up copy works fine. -
Thank you so much for releasing this to Arma 2. The mod H&G Models had a female soldier (Temp pulled from Armaholic until permission is granted as the model for the female was Alyx from Half-Life 2. Though it seems retarded to me since it was exported from Half-Life 2 years ago and Valve never said a word. But hey, it's their site.) There is also the female secretary from the Guba and Angelina mod: http://www.armaholic.com/page.php?id=11085&highlight=GUBA And while this is 3 years old and from Arma 1, it's a female soldier: http://www.armaholic.com/forums.php?m=posts&q=1280 Maybe those mods, with permission, could be used to further develop Tanya or other female soldiers. I know its a very hot button topic. Split between chauvinistic ignorant pigs and soldiers/gamers who just want to see females for either realism or casually just because they should be there anyway. Other than that, maybe politely contact BI and see if they'd release the MLOD? I mean after all-- they seem pretty supportive of the modding community.
-
LHD – how far can the game engine be pushed?
Faulk_Wulf replied to vshadow's topic in ARMA 2 & OA - ADDONS & MODS: DISCUSSION
What about using the AttatchTo command? People have used it to man side-guns on the helos while piloting, putting bikes into pick-ups, putting ...anything... into C130Js, and players on top of an APC. AttachTo while it moves and then have it detach when someone gets in and starts the vehicle up. (I assume while you're taxi-ing or such that the movement of the carrier would matter much less.) Keeping in mind this is just an observation from seeing other addons/mods-- not from any actual modding.