Jump to content

ADHS

Members
  • Posts

    377
  • Joined

  • Last visited

Everything posted by ADHS

  1. Thank you (once more), you are amazing man. You are helping us all here! Next time, before i start filling variables with vacum, i will start with a simple: IF UNIT then... PS: the *.*:isAlive() is not working with Units ? Was the only variable that wasn't accepted. Any alternatives to use it ? Thank you (always)
  2. Hello and thank you for your reply . Once you didn't find any error in the flow , i will try your directions. Thank you (always)
  3. Hello. There is a LATE ACTIVATION group named 'MyGroup-1' with only one unit called 'MyGroup-1'. step-01. Activating the LATE ACTIVATION group, 'MyGroup-1': local group = Group.getByName('MyGroup-1') trigger.action.activateGroup(group) step-02. Destroying 'MyGroup-1' group: local myGroup = Group.getByName('MyGroup-1') Group.destroy(myGroup) step-03. Respawning 'MyGroup' with Mist: mist.respawnGroup('MyGroup-1', true) My problem is when: trying to set some conditions for the respawned UNIT 'MyGroup-1' such as: if Unit.getByName('MyGroup-1'):isAlive() if Unit.getByName('MyGroup-1'):isActive() if Unit.getByName('MyGroup-1'):inAir() == true i've got NIL errors after the group has been Mist respawned, but not before LATE ACTIVATION. Where am i doing wrong ? Thank you.
  4. Hello. Plain advanced waypoint command: From my recent similar situation, i've found out that you have to fill the HOLD field with seconds. But no matter how many seconds you have enter, it will take some addition seconds to continue. Test your convoy in a straight line before the HOLD point, and put the HOLD in front of them. After HOLD, put another waypoint with GOTO command. It worked better if the concoy goes to HOLD in a straight line, with no units waiting for others and no turns.
  5. AIs to have the "start from ground" option as Clients. WHY: Because they have to occupy a "valuable" parking slot of a Client, so to be placed in the same airport. I've found that S_EVENT_BIRTH is giving event.place information ONLY if a unit spawns from a PARKING SLOT. (Reported to Grimes to double check this finding.) So it will be better if S_EVENT_BIRTH gives event.place info of spawn for all objects inside an airport zone. WHY: Because "start from ground" doesn't fills up the event.place field even if the spawn happened inside the area of an airport. An UNDO option in Mission Editor.
  6. Thank you both, i will try to code your suggestions.
  7. Check ALL your map options. You will find a menu that you can set visibility for RED, BLUE and NEUTRAL.
  8. In short: I am looking for the S_EVENT that triggers once an AI is dead.
  9. toutenglisse Hello and thank you for your reply. Yes, i did that at destroy/respawn stage, but once the goal for this function is to be fully automate, i based it on BIRTH/DEATH/ENTER/LEAVE for both AI and CLIENT. Looking for the AI "death" EVENT part, that will make this function fully stand-alone and operational. Besides that, i am curious to find out which EVENT can cooperate with AIs at such occasions. This is the overall flow: 1. Event handler. if Event.id == BIRTH, DEAD, LOST, ENTER, LEAVE, PILOT_DEAD, LAND etc then ALFA() 2. ALFA() If CATEGORY == 0 PLANE or 1 HELI then BHTA() 3. BHTA() If COUNTER_RED ~= COUNTER_BLUE if COALITION == 1 or 2 if CLIENT or not CLIENT then COUNTER_RED +/- or COUNTER_BLUE +/- Respawn or Destroy AI_GROUP I think it may be a matter of what DCS assumes as DEAD or ALIVE at runtime, even if an object has been activated/deactivated or destroyed/respawned by DCS or MIST functions. Thank you Indeed Mist/DCS can destroy an AI_GROUP, is not there anymore, but EVENTs are ignoring this action. All AI_GROUPs, are GROUP with just one UNIT, so Mist/DCS can destroy/respawn type of GROUP, with LATE ACTIVATION. CLIENT is under S_ENTER and S_LEAVE events. AI is under S_BIRTH and (S_LOST for now, after EXPLOSION) events. AI destroy/respawn (1st stage) depends of CLIENT's action S_ENTER or S_LEAVE. AI destroy/respawn (2nd stage) depends if CLIENTs are against AIs (scenario).
  10. Maybe i did found something that (at least) is not documented. If you spawn from a parking slot, the S_EVENT_BIRTH returns EVENT.place which is the Airport/Base name that you seek.
  11. Hello. I am setting a Team-Balance script. S_BIRTH gives the info of CLIENT/AI spawn so to increase the Counter to +1. With CLIENT all goes fine, but i've stacked on how to get and minus an AI's loss. Mist destroy group, dcs deactivate group, they don't trigger a "loss" event. Tried S_DEAD, S_PILOT_DEAD etc. Only S_LOST worked, but only if EXPLODE the Unit. Looking for an alternative way, more quiet and less dangerous for the neighbours . Thank you.
  12. No i don't see problem with this approach. I ment that S_EVENT_LAND can give you the Airport's name at once. All good
  13. OK, thank you
  14. Thank you Grimes, thank you very much.
  15. No my friend. I am talking about YOU to setup a SCRIPT EVENT HANDLER that is watching for these events. Let me know if you can do this, or else, give me 1-2 days to send you a ready mission so you to check out. Glad to help, just let me know how i can help you. Thank you.
  16. Sorry Flappie, but the solution came from toutenglisse. Site doesn't allow me to change my mind. Can you do it for me please ? as all credits goes to toutenglisse. Thank you.
  17. Thank you for the info and for the advise Grimes. PS: Just want ask you if you think that my idea: to check within "poly Draw Shapes" will work and bring a same or similar result. Thank you.
  18. Thank you for your reply. So it's an exclussive FC3 issue. I can understand as this is the oldest module. Thank you both, solution given.
  19. Somehow i did got this information. but i can't remember well. Try to listen 1st the BIRTH and 2nd the LAND events. At the spawining stage (MP), both events are triggering (for some reson). Try it and if they do, then (from LAND event) you can have the Airport name ( Event.place:getName() )
  20. No luck, it didn't work. Of what i understood, is that if you take the JTAC role you can cooperate with others that are flying.
  21. Open.Beta here. I was testing SCENERY DESTRUCTION and had the same. I can't speak for sure, but, i think it's because once ME runs and loads all of it's components, it doesn't "refresh" because of this command, once you run it through ME. It does need a restart or save the mission, quit ME and try your mission in Multiplayer mode. This worked for me.
  22. Fully agree.
  23. Hello, FC3: SU-27 used, because it's fast in loading. The truth is that haven't test with any other module, but if this is the reason, then each module it may or not be the (?). Looking forward to read and what Flappie has to say. Thank you for your reply.
  24. It works. Unless there are other enemy units nearby that block your soldier to capture it. Also, check the zone because i've noticed that the AIRPORT AREA (the black circle around any airport) is the default capture area.
  25. Mission : ADHS_S_LAND-Problem.miz Scripts : MIST_4_5_107.lua : _func(ADHS)_v104-221006_set.lua : ADHS_S_LAND-Problem.lua ..................................................................................... LARNACA airport is NEUTRAL. A RED KA-50 is heading to land there. Once landed, the S_EVENT_LAND will happen and it will trigger a RED Soldier to respawn and capture the airport. ..................................................................................... At this stage, as CLIENT: If you get the opposite KA-50 and land there, the S_EVENT_LAND will happen. But, if you get the opposite SU-27 and land there, the S_EVENT_LAND will NOT happen. Hense, it wont trigger your BLUE Soldier to respawn. And here comes that i've noticed a different behaviour of S_EVENT_LAND for Helicopters & Airplanes. Fly the mission and i will wait for your answers. Thank you. PS: I've setup two Scenarios to test both Coalitions: Scenario_1 for RED and Scenario_2 for BLUE. Plus, there is a switch to turn respawing on/off (SPWN) and another one that allow/not the respawned groups to stay alive after capturing the Airport (STAY). These are RADIO commands. ADHS_S_LAND-Problem.miz
×
×
  • Create New...