Jump to content

Aviator1280

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Aviator1280

  1. Hello, I found by myself the way to do what I was looking for with this script: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AD1 = GROUP:FindByName( "AirDefense1" ) RespZoneAD1 = ZONE:New( "RespZoneAD1" ) AD1:InitZone( RespZoneAD1 ) Radar3 = UNIT:FindByName( "Radar 3" ) AD1:HandleEvent( EVENTS.Dead ) function AD1:OnEventDead(EventData) if Radar3:IsAlive() == false then AD1:Respawn():MessageToAll( "AD1 Respawned", 5, "ATTENTION" ) end end ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This script takes the Group spawned without Late Activation in DCS so that's why it starts looking for the GROUP. But lat's say now I want to change this, I want to put a Late Activation, how should I change this script? I tried removing GROUP:FindByName() and used AD1 = SPAWN:New( "AirDefense1" ) and after that I spawned using AD1:Spawn(). The Group spawns but it doesn't Respawn once Radar1 is destroyed. May be I can't use :Respawn() because so far if I understoopd :Respawn() you use for groups are already spawned by DCS. I'm asking this also because if I use AD1 = SPAWN:New( "AirDefense1" ) I can also use other :Init.…() commands. I think I'm making a bit of confusion but I stared only few days ago to explore MOOSE and LUA. Sometime I'm confused on how to put toghether the script I write and DCS mission or how to put more scripts together or when to use local in front a variable or not. In many example a lot of time has not been used in other yes... If someone can give some clarification about all this would be appreciated. Thanks
  2. Hello, I'm using MOOSE and spawning or respawning Groups created in ME is ok but now I'm trying something may be a bit more complicated, at least for me that I just started to use MOOSE. In DCS ME I've a Group of units that composes an Air Defense. Within the Group there are different Units to make the Air Defense to work properly. What I would like it happens is that when the Radars for example will be destroyed the entire group will respawn or at least the destroyed Units. I can't find the solution for it with a simple script like usually are those to Spawn Groups. Anybody has any Idea? Thanks
  3. Hello, I didn't run DCS for a couple of months, may be 3 and I found out I'm having this problem that before wasn't there. The CCRP mode on the HUD is not working, doesn't matter if with or without WPs it can't just be moved. Using the TGP I can designate a target and dropping a bomb when I feel it correct to do so if I was correct the bomb hit the target. But nothing is working on HUD not even selecting HUD as SOI. Neither in CCIP without a TGP if I want to designate a target with HUD doesn't work. I found so far not recent discussions about this problem so I wonder if it comes back or what. Thank you
×
×
  • Create New...