Jump to content

_RoosterCat_

Member
  • Content Count

    19
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About _RoosterCat_

  • Rank
    Private First Class
  1. I've been searching for awhile now and trying to implement into multiple missions but haven't quite gotten it yet. How would someone like myself, set a respawn point using a marker directly between two squads? I have a marker set as "respawn_west_Alpha" and I use: while {true} do { //Moves base marker in the editor to position of vehicle every 45 seconds "Respawn_west_Alpha" setmarkerpos getpos p1; sleep 45; }; but I still haven't been able to get it working with two. The reason I am trying for this is because I play with AI and they respawn on any position with respawn_west in it and if its multiplayer. If there are multiple I'm pretty sure they respawn on random ones, and I want this mission to have two player led squads that requires a lot of teamwork, so it makes sense for the squads to stay close and only use one respawn point that follows. If I can figure this out, as well as getting two squads to spawn on two seperate points, I'd be set. Any feedback is great, appreciate your time reading this
  2. looking in the code I see So what I'm thinking is that the script only runs once at the very beginning of the mission(as stated above), which calls Alpha to be the only sector as the rest are locked and hidden from view until unlock. What confuses me is that bis_fnc_moduleSpawnAISectorTactic_sectors calls each sector upon the triggered unlock but none of the others do. I'm thinking of a possible work around I'm going to try to re-initialize the script every time one of the triggers used goes off. [Didnt work with what I attempted yet] Do you know of any way to have it collect all of the sector information at once, even with the unlocks?
  3. Thank you again for your responses and helping me understand. Let us begin with all the values now that I understand how to plug them in. Mission start: bis_fnc_moduleSpawnAISectorTactic_sectors = [Alpha] bis_fnc_moduleSpawnAISectorTactic_areas = [L Alpha 1-2:41] bis_fnc_moduleSpawnAISectorTactic_sectorsEast = [Alpha] bis_fnc_moduleSpawnAISectorTactic_sectorsWest = [] bis_fnc_moduleSpawnAISectorTactic_sectorsGuer = [] bis_fnc_moduleSpawnAISectorTactic_sectorsNonWest = [Alpha] bis_fnc_moduleSpawnAISectorTactic_sectorsNonEast = [] bis_fnc_moduleSpawnAISectorTactic_sectorsUnknown = [Alpha] bis_fnc_moduleSpawnAISectorTactic_sectorsNonGuer = [Alpha] Upon capturing Alpha: bis_fnc_moduleSpawnAISectorTactic_sectors = [Alpha, Charlie, Beta] bis_fnc_moduleSpawnAISectorTactic_areas = [L Alpha 1-2:41] bis_fnc_moduleSpawnAISectorTactic_sectorsWest = [Alpha] bis_fnc_moduleSpawnAISectorTactic_sectorsEast = [] bis_fnc_moduleSpawnAISectorTactic_sectorsGuer = [] bis_fnc_moduleSpawnAISectorTactic_sectorsNonWest = [] bis_fnc_moduleSpawnAISectorTactic_sectorsNonEast = [] bis_fnc_moduleSpawnAISectorTactic_sectorsUnknown = [] bis_fnc_moduleSpawnAISectorTactic_sectorsNonGuer = [Alpha] If I remove the initial spawner that isnt set to a trigger, I then recieve this error: https://imgur.com/a/uypiGoK ((Edit: line 167 is private["_area","_triggers"]; in the config code) and I don't understand how it has an undefined variable..) But then whenever capturing alpha without initial spawner: bis_fnc_moduleSpawnAISectorTactic_sectorsNonEast = [Alpha] I decided to take the testing a bit further and capture Charlie, even though it doesnt show up for bis_fnc_moduleSpawnAISectorTactic_sectorsEast = [] and it didnt change any of the above values. Something about the initial spawner prevents East from attempting to recapture if they're locked behind triggers and unlocks? How could I work around this? Also it appears that even though they are being identified with bis_fnc_moduleSpawnAISectorTactic_sectors, none of the sectors are being slotted into the corresponding group, since East should start out owning the sector. Also I've tried plugging this into the expression slot of it and that didn't work, do I need to define _group in the init.sqf? I also tried plugging it into the debug, interchanging "bis_objective" for the objective name but got nothing returned. Thank you again
  4. _RoosterCat_

    Cost table information and assistance

    Grabbed Screenshots of in game issue: Without code(functioning but unable to edit cost) : https://imgur.com/a/QWI0bYs With code(no errors pop-up but no units visible) : https://imgur.com/a/9Atxsqj
  5. Hi, let me start off and say that this has been a journey. I've been able to finally figure out most of the cost table stuff besides a few things. been trying this off and on for a couple years now, and each time I've given up until now. Lets start off with the basics: 1: Generating a cost table on the Wiki you can read into this, but ["A3_Characters_F_BLUFOR", "A3_Soft_F_MRAP_01"], "ods"] spawn BIS_fnc_exportCuratorCostTable; is the example they use that is supposed to create a paste-able table, but when you run this code, or atleast when I did, I recieved an error. Turns out the code on the wiki is wrong, and it requires an additional open bracket to complete the line of code. So it should look something like this I highly recommend using any script-supported text editors like notepad++ [["A3_Characters_F_BLUFOR", "A3_Soft_F_MRAP_01"], "ods"] spawn BIS_fnc_exportCuratorCostTable; - You may interchange A3_Characters_F_BLUFOR and A3_Soft_F_MRAP_01 with any other addon Cfg Patch name. ex: "JLTS_characters_DroidUnits" (quotations needed for each Cfg.Patch) If you don't know how to find Cfg Patch names: In Eden Editor go to "Tools" in the top left, then "{} Config Viewer". Locate by scrolling "CfgPatches". Here you will find all CfgPatch names. Scroll through and search for any that have a unit you recognize from an addon https://imgur.com/a/fFjBBsQ insert each CfgPatch name with quotes into the above code. ex: [["JLTS_characters_DroidUnits", "JLTS_characters_DroidArmor"], "ods"] spawn BIS_fnc_exportCuratorCostTable; In notepad++ or whatever you use, save as init.sqf if you haven't created a mission yet or want to start fresh, start a new game and save it named as whatever you want. Locate that mission folder in C:\Users\"x"\OneDrive\Documents\Arma 3\missions and open it. Copy and paste the init.sqf you just created into the mission folder. (you can use the init.sqf for other scripts too so keep that in mind) open the mission through the editor and it can take anywhere from 30 seconds to 15 minutes, depending on systems and what you are generating. (This morning it took me 30 seconds but last night it took anywhere from 5-15 minutes) Once the mission loads, alt tab, then as per the wiki: I recomend OpenOffice Calc, I got it for free, but if you use Excel change out "ods" for "xls" Just Ctrl + V the first box and boom. You have a generated Cost Table for all of your addon units that haven't been configured for zeus. Change whatever values you want in the system, then follow the prompts from the wiki. So an example of this would be: https://imgur.com/a/IHxgivx Now we need to open up init.sqf with our notepad++ or whatever you use, and remove the previous code that we used. in my example, I would Ctrl + C JLTS_characters_DroidUnits, and paste it into init.sqf. Go to the next line and repeat for JLTS_characters_DroidArmor. The init.sqf will look something like this https://imgur.com/a/haPjjwg (NOTE: the notepad is titled new 1, that's because my init.sqf is full of testing code right now. Make sure you have init.sqf as the name.) I recommend we combine the two into one variable, as this is meant to be for the same zeus and it makes typing the final code out easier. so taking my example code, in the next line input: _CIS = [_JLTS_characters_DroidUnits + _JLTS_characters_DroidArmor] (_CIS can be any variable you decide) this makes the value _CIS equal both variables. Finally, we move on to importing it back into the game. To my understanding, the final code on the next line should look like this: [master_zeus,_CIS] call BIS_fnc_curatorObjectRegisteredTable; (master_zeus can be any variable named zeus) https://imgur.com/a/To2no40 My issue is for anyone who might understand: I don't get any errors, but none of the units become available to use, when before the units showed up in zeus, just had incorrect costs. After running this command, any available units before are no longer available (I have Game master set to addons present in scenario). Why are they disappearing from my zeus's ability to purchase/place them? My final code looks like this: https://imgur.com/a/hIJu7Z1
  6. _RoosterCat_

    How do cost tables work?

    Calling the cost table you need to first go to whatever save you want to do the cost table out of, and open notepad(preferebly something with script enhancers like notepad+). on the first line put ex: ["A3_Characters_F_BLUFOR", "A3_Soft_F_MRAP_01"], "ods"] spawn BIS_fnc_exportCuratorCostTable; (from wiki). NOTICE: the wiki is actually missing an extra bracket, to open the argument. Took me a bit to notice this, so make sure to add the "[" from the copied wiki or type it out yourself. Otherwise you will receive an error. It'll look like this: [["A3_Characters_F_BLUFOR", "A3_Soft_F_MRAP_01"], "ods"] spawn BIS_fnc_exportCuratorCostTable; then save the file as the name init.sqf and move the file into the mission save point which is usually located C:\Users\kevin\OneDrive\Documents\Arma 3\missions\"X" Launch the mission (you don't need to close arma just make sure you restart the mission if in game), and it will take anywhere from 5-15 minutes depending on your parameters. after the game loads in, alt + tab, and open "OpenOffice Calc" as stated in the wiki, and select the first box. Ctrl + V and a window should prompt, just hit okay. Boom, cost table generated. Follow the rest of the wiki to export it back into the game/ init.sqf file
  7. _RoosterCat_

    AI enemy mortar teams

    You can group a mortar team with any other active group and that group will then be able to call in artillery fire. Useful if you want the enemy squads to have their own mortar support
  8. Still haven't figured out how to exactly use "bis_fnc_moduleSpawnAISectorTactic_'x' " functions. and on the website https://community.bistudio.com/wiki/Category:Arma_3:_Functions I only see BIS fnc moduleSpawnAISectorTactic which the Syntax used is : [] call BIS_fnc_moduleSpawnAISectorTactic. I've tried using this in triggers and init script but can't piece it together fully
  9. _RoosterCat_

    AI Sector Tactics

    It seems you may be missing an area logic.. It should be: Sector module with synced area logic + side logics(blufor, opfor, or independant(pick 2+) Place down Ai Spawn Module, configure its setting accordingly. Place down AI Spawn: Sector Tactic anywhere. -Now in practice, if you don't sync the sector tactics to ANYTHING, it should run and allow the men to charge the sector. I prefer to sync it to the spawn modules and that works too.
  10. This is some amazing advice I haven't seen ANYWHERE!!! My man you helped me resolve a 2 day working issue. Typing it out allowed it to work! I really appreciate your feedback and assistance.
  11. Thank you for helping me understand the group referencing and the fact that it was an array.. I plug in the code and it gives me an error saying it's missing a ";" but reading the code it looks correct to me. I also tried using _this and params in place of param but all three come back with "missing ;" "Zeus1 addCuratorEditableObjects [ units param [0], true ];" your code clearly has a ;
  12. _RoosterCat_

    Spawn only modded units

    I found this and it walked me through getting modded units using the Spawn AI module
  13. Thank you for your diligence in aiding me. I tried that, but when using the wiki example "MyCuratorModule addCuratorEditableObjects [[MyCar], true];" [MyCar] is the object, and inside the spawner under expression I see: Passed arguments are [<group>,<module>,<groupData>]. if I use Zeus1 addCuratorEditableObjects [[<group>], true]; - nothing happens but an error telling me I'm missing a <#>(number) before group. if I use Zeus1 addCuratorEditableObjects [[1<group>], true]; - error telling me same error as before but after group if I use Zeus1 addCuratorEditableObjects [[1<group>1], true]; - it tells me invalid numbers if I use Zeus1 addCuratorEditableObjects true; it gives me an error saying expected array if I use Zeus1 addCuratorEditableObjects [[(_this select 0)], true]; says expected group(saw online (_this select 0) is the group but didnt seem to work, and [[_this select 1], true] causes the spawner itself to become editable... a bit baffled been at this most of the day it seems like addCuratorEditableObjects requires a variable name and I dont see a way inserting the name since each unit spawned doesnt have a variable name I can grab. Is there a way of circumventing the need for a name?
  14. So after some experimentation I was able to get [] spawn BIS_fnc_exportCuratorCostTable to work using init.sqf(learned how to add those to mission files) and now have been able to actually create a curator cost table... Working my way up!!! Update: Still trying to get CostTable to grab the modded info not just base game... I'll get it eventually lol
×