-
Content Count
359 -
Joined
-
Last visited
-
Medals
-
Joseph Wili started following Lucky44
-
Spawning in IEDs via script
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks! That was helpful. I'm now making my life more complicated. I'm trying to create a randomized mission where IEDs get spawned around town, and hostiles and civs are wandering around; players must go through and find the IEDs, deactivate them and bring them back to their base. This proved tricky because the AI kept walking over them! So I am spawning in unarmed IEDs ("IEDUrbanSmall_Remote_Ammo") and a trigger to detect when WEST players get within 5m of them. Then the trigger fires and replaces the unarmed one with an armed one ("ACE_IEDurbanSmall_Range_Ammo") . Working so far in SP...need to test on Dedicated server. -
Lucky44 started following How to set factions for the BIS Spawn AI Module?? and Spawning in IEDs via script
-
I'm stuck trying to spawn IEDs into pre-designated locations. I can get them to spawn just fine using createVehicle, but they aren't armed and can't be armed (even with a defusal kit and by an engineer). I'd like to be able to do both ACE IEDs and vanilla IEDs. Here's what I'm trying: "IEDurbanSmall_f" createVehicle IED1pos; //IED1pos is a position, not an object "ACE_IEDUrbanSmall_Range" createVehicle IED2pos; //IED2pos is a position, not an object The spawning works, but the objects spawned are ID'd as things like ied_land_small.p3d, and they don't set off a mine detector. Any suggestions how I can create both of these types?
-
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
AWESOME! Thanks so much. And by the way, how did you know that? -I ask so that I can try to look it up myself and not have to ask you! -
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OK, one more question on the SpawnAI module: while everything I'm trying to do is now working right locally, on a dedicated server, no units spawn. Any ideas why that would be? I went to https://community.bistudio.com/wiki/BIS_fnc_moduleSpawnAI, but it was useless. Here's a demo mission that I tested on a dedicated server. -
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Wow, it was that simple. Thanks! I was doing that wrong because I didn't realize you had meant that it should be abbreviated like that. That's kind of crazy - why would it not work to write INDEPENDENT in those places? Oh well. Thanks for getting this all solved. I hope this thread can be useful for others too. -
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I see what you mean. I apologize for not being clearer. Here's what I meant: when you use just the default settings for the Spawn AI module, it picks from ALL the BIS units for that side and faction. So for NATO, for instance, it can pick from 13 at least different groups, ranging from 2-man teams to 9-man squads (and that's not including Support Infantry groups, etc.). So it seemed like the group SIZE was randomized. But it's not, and I see that now. -
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Sorry, I guess I put the wrong link! Here's the demo mission I made. https://drive.google.com/open?id=1S_5ReaFMF1TtmeEEy876XunYBWJti77C I'll take a look at your reply in a minute. -
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OK, good news and bad news. SpawnAI "Randomizing" units within a custom group: working. -By that I mean, by adding multiple groups into the description.ext CfgGroups, I get a randomized choice from the groups listed. So, effectively, that works fine. What I meant originally (and hoped for) was just listing, say, 10 units in a custom group and having the SpawnAI module pick each one from the group randomly. That works with the default/BIS units, but not once you start using custom groups, I guess. Not a big deal. -Thanks. Spawning at multiple locations: works fine. I didn't realize I had to add the custom Side and Faction info into those like I do for the SpawnAI module. -Thanks. The bad news is that I can't get my custom groups to pursue the Sector Control. I see it working fine in your demo mission. I just can't get it to work with my LOP ISTS units/groups. Here's a demo mission I've made showing how the units just spawn and stand there, ignoring the Sector Control. Of course, you need the LOP ISTS mod to see those units (from Project OpFor, https://steamcommunity.com/sharedfiles/filedetails/?id=735566597). I would guess that using any 3rd-party mod units would have the same issue. And I am betting that there's a simple fix, but I can't figure it out! -
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You are the best, Larrow. Thanks for your help, again. I'll take a look at this right now. -
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
-
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OK, Great! It's working nicely! The one thing that's curious is that it won't randomize the units at all. It always spawns the same squad, with the same number of units (although the clothing is randomized within the proper type). It's ignoring the maximum group size specified in the SpawnAI module. Is there an easy way to add some randomness to the group size? EDIT: I did notice that the AI no longer pursue the Sector Control objective that I had them using. This is a change since I switched from AAF units to a custom group of LOP ISTS units - and yes, I have them all still Independents, like the AAF were. What would cause that? AND, now they only spawn at the main SpawnAI module location, not at the other spawnpoints connected to it. -
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Larrow, Thanks for your help, again! I will try this out right now and let you know how it goes. I think you may have solved my issue just by the way you used "this" in the init box. But the additional info on using CfgGroups is even more helpful. -
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
(Yes, I made 15 units to pull loadouts from and named them accordingly.) How did you use it? Did you use it in SpawnAI module? If so, where did you put that line? Thanks -
How to set factions for the BIS Spawn AI Module??
Lucky44 replied to Lucky44's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks, Play3r. I tried using that approach with the SpawnAI modules, but I couldn't get it to work. The problem was with the way the script was called from the module: [_this] execVM "nameOfMyScript.sqf"; It threw an error on the _this part, and then the script was this: params ["_unit"]; if !(isServer) exitWith {}; _unitToCopy = selectRandom [c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14]; _unit setUnitLoadout (getUnitLoadout _unitToCopy); lockIdentity _unit; [_unit, (speaker _unitToCopy)] remoteExec ["setSpeaker", 0, true]; [_unit, (face _unitTOCopy) ] remoteExec ["setFace", 0, true]; -I have to admit I'm not real clear on this/_this and thisList, etc. And I don't know how the params command works either. (I did set up units for the array to choose from, though. I was able to jimmy it into working via a script on a trigger, but that's not a very efficient way to do it.) Does anyone know how to use the code right with the init box of the SpawnAI module? -
How to set factions for the BIS Spawn AI Module??
Lucky44 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Looking for some help with the BIS Spawn AI Module. I can't find any documentation on how to set the faction beyond the vanilla ones (e.g., AAF, CSAT) or otherwise shape the spawns beyond the basic infantry/vehicle/armor/air options. I'd like to be able to at least set the faction, like to an RHS infantry type. Anyone know how to do this?