Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Everything posted by Lucky44

  1. 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?
  2. Here's what I'm trying to do: script damage to specific body parts so that it will register in ACE3's medical menu. While I'm at it, I'd like to be able to govern the ACE3 Medical TYPE of damage (e.g., cut, crush, velocity, etc.). So BIS_fnc_setHitPointDamage and setHitIndex don't work. The visuals (e.g., bloody injuries) appear on the unit, and the damage happens, but it doesn't show up on the ACE3 medical system (i.e., the need for bandaging doesn't show up). I want to do this to create a way for medics to train (and be tested) using these scripts to apply damage to a unit in specific ways. I think this is very feasible, but an hour of online searching yielded me nothing. Anyone have ideas?
  3. I have a decent understanding of locality. And I've read the Biki pages on BIS_fnc_MP and remoteExec. I understand that remoteExec is the newer, preferred approach, but that the other still works too. But I have not been able to wrap my head around the syntax/usage of either of these. So I'm asking for someone who really does understand them to expand on what the Biki has and explain the usage -not just syntax, but how to use it in different situations. A variety of examples (and why it's done the way it's done in each example, and the effects of the variations) would be awesome. Anyone able to do this? It'd be a real benefit to all of us who make multiplayer missions!
  4. 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?
  5. 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.
  6. 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!
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. 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!
  12. You are the best, Larrow. Thanks for your help, again. I'll take a look at this right now.
  13. I'm back at it again, looking for help in blacklisting a few items from a virtual arsenal crate. Some background: I'm using ACE3 (and some other mods like RHS) This will be for a multiplayer, dedicated server I want to have almost everything in the VA crate, but I want to remove a handful of things I see that ACE now adds to the editor the ability to Whitelist and Blacklist individual elements. But I can't get it to work. I looked on the ACE3 site, but nothing there was helpful. Has anyone got this working? Can it be done through the editor? Thanks in advance!
  14. 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.
  15. 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.
  16. (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
  17. 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?
  18. This is great. Thanks so much for the help.
  19. Well, I had hoped to solve this 3 years ago, but I'm still stuck. Anyone have a documented way to change wind direction and speed on a dedicated server, and not have it revert back quickly?
  20. Are these functional currently? If not, is there any way to get control of wind (direction, variability and speed) by scripts? Yes, I've seen the wiki listings for setWindStr, setWindDir, setWindForce, setWind, but they don't appear to work. I've seen some posts about only long change times working and some about multi-player issues. (I'm only concerned with MP play.) Any insight/updates will be appreciated!
  21. I'm spawning 6 helos (one at a time), flying them into a location, having them land, then spawning infantry on the ground nearby (to simulate them getting out of the helos), then having the helos fly off. It works fine in SP, but when I run it on a dedi server, the helos won't land, they just hover near the landing spot. I do have a bunch of helipads on the ground for them to land on. (More than one gets to the ground simultaneously, so I need multiple.) And as I said, it works fine in SP. I have to think it's something to do with the land command, that it doesn't work the same on a dedicated server. Here's the code called each time through a loop (once per helo spawn) - _airGrp= createGroup east; _Air1 = [getMarkerPos "spawnAir", 0, "O_Heli_Transport_04_covered_F", _AirGrp] call bis_fnc_spawnvehicle; // this spawns the aircraft and includes crew //_Air1 is the VEHICLE array, with the actual vehicle being the first element of the array!! (Select 0) _helo = (_Air1 select 0);//give it a shorter name! _wp1 = _airGrp addWaypoint [getMarkerPos "WPair1", 0]; _wp2 = _airGrp addWaypoint [getMarkerPos "WPair2", 0]; _wp2 setWaypointSpeed "limited"; _wp3 = _airGrp addWaypoint [getMarkerPos "WPair3", 0]; _wp3 setWaypointSpeed "limited"; _wp3 setWaypointStatements ["true", "this flyinHeight 25"]; while {(_helo distance2D (getMarkerPos "WPair3")) >= 100} do { sleep 2; }; sleep 2; doStop _helo; _helo land "land"; while {(getPosATL _helo) select 2 >=1 } do { // hint format ["alt = %1", (getPosATL _helo) select 2]; //debugging only!!!!!!!!!!!!! sleep 1; }; sleep 2;//time to unload (fictional) troops --spawn the infantry now-- sleep 25; _helo doMove (getmarkerPos "WPair4"); _wp4 = _airGrp addWaypoint [getMarkerPos "WPair4", 0]; _wp4 setWaypointType "MOVE"; _wp4 setWaypointSpeed "FULL"; I've had this issue in the past, but it's been years since I dealt with it, and I can't remember a solution! Any clues?
  22. OK, I tried yours, and it works fine. Well, I'll be honest: your code is too complicated for me. I really appreciate you taking the time to help, but I can't follow the way you've done things! (I wish I could!) But I was able to deconstruct the code and make up my own version that works: if (!isServer) exitwith {}; private ["_pad", "_airGrp", "_Air1", "_wp1", "_wp2", "_wp3","_heli"]; //spawn the helo _airGrp= createGroup east; _Air1 = [getMarkerPos "spawnPt", 0, "O_Heli_Transport_04_covered_F", _AirGrp] call bis_fnc_spawnvehicle; //give the helo a WP where it should (move to and) land _wp1 = _airGrp addWaypoint [getPosATL pad1, 0]; _wp1 setWaypointStatements[ "true", "_heli = vehicle this; _heli land 'land';"]; _heli = (_Air1 select 0); sleep 3; //wait for it to touch the ground, plus a bit waitUntil{ isTouchingGround _heli }; doStop _heli; sleep 3; //simulate infantry getting out and moving off on their own WPs ["", ["spawnMarker7"], 10, 12, 1, "CSAT",["WP2a","WP2b","WP2z"]] execVM "spawnInfSqdNOSCALE.sqf"; sleep 15;// //make the helo takeoff, fly to a far WP and be deleted _heli doMove (getmarkerPos "WP4"); _wp4 = _airGrp addWaypoint [getMarkerPos "WP4", 0]; _wp4 setWaypointType "MOVE"; _wp4 setWaypointSpeed "FULL"; sleep 40;//wait while helo flies off out of area, then... {_heli deleteVehicleCrew _x} forEach crew _heli; deleteVehicle _heli; The spawning of the infantry calls my own script for spawning units, obviously. Now I want to put it into a loop to do this 6 times... Thanks heaps for the help!
  23. Ah! Sorry! I didn't see that you had linked your mission earlier! I'll look at it now.
  24. By the way, I now understand the way you used the params in the BIS_fnc_spawnVehicle. Thanks for explaining it!