Jump to content

Wingthor

Members
  • Posts

    66
  • Joined

  • Last visited

Everything posted by Wingthor

  1. We all know of buddy spikes and buddy locks, question is if a SAMs locks up a enemy airplane in opposite direction of you, should you get a locktone in RWR? I guess it was using a track radar. In my case it was a HAWK.
  2. Well I must say, I am not used to that behavior in other aircraft's, that you get a lock tone when your mate is locking an other airplane, do you know this or guessing?
  3. I have no indication on that you have to be between the enemy aircraft and the SAM. Question is can't the SU25T RWR distinguish between a friendly and enemy SAM, or is it a BUG. Makes the SAM look hostile :(.
  4. When friendly SAM locks on to an enemy aircraft, I get a lock tone warning from it in my EWR, should this consider a BUG, or is it like this in real? Regards
  5. Im on TAWs slack, but not on any else, do you have slack channel too? I would love to get some training, if I can have some!
  6. Time Based Scoring Hello again FlightControl. :) I'm currently building a kind "King of Hill" mission where a score will be given as long you hold an Airbase or location. Is it a way to use the scoring class to give players custom scores based on side.coaltions state in a scheduler function? I have tried this, but it does not work. SCHEDULER:New(nil,function () local currentABHolder = ab:GetCoalition() if (currentABHolder==coalition.side.BLUE) then players = SET_CLIENT:New():FilterCoalitions("blue"):FilterStart() players:ForEachClient(function (playerUnits) if (playerUnits:InAir()==true or debugging == true) then --Add some score scoring:_AddMissionScore(mission,playerUnits,"For holding Senaki-Kolkhi and bravery",1) env.info("Found a player in air") end end ) end end,{},15,1Regards Wingthor
  7. Right, thanks again for quick and comprehensive answer. Check the docs, I pasted straigh from the docu. for BASE class, BASE:TraceOnOff(TraceOnOff) under "usage" it states: -- Switch the tracing On BASE:TraceOn( true ) -- Switch the tracing Off BASE:TraceOn( false )Should have figured out anyway, hope it works now! :) Regards Wingthor
  8. Debug/Trace Hi FlightControl, Could you explain a bit further about debugging in Moose, try to turn on tracing by this : attempt to call method BASE:TraceOn( true )Get this error: attempt to call method 'TraceOn' (a nil value). And Im not sure about where to put the parameters cause nothing happens, might be due to above problem. local menuSpawnEscort = MENU_GROUP_COMMAND:New(cClient,"Spawn Escort Helis",menuFeatureParent,spawnEscort,player):E("Debug Exort Menu Line"):book: Debugging DCS makes me crazy, so hope your trace function can bring som light into my dark dark tunnel :). Second thing, as you can see Im using menu to spawn escort, due to the menu multiplayer bug I tried to just use to spawn the escort in startup, but it apears like the same bug problem apears in ESCORT class when in MP. Can you confirm this?
  9. Sorry about late reply, beein busy That sound like a good idea. I have modified i a bit now it looks like this: ---@Param instance of GROUP: function convertBlueToRed(group) --Switch side of a group in the databse template if group~=nil then local oldTemplate = group:GetTemplate() local cCoaltion = group:GetCoalition() if cCoaltion == coalition.side.BLUE then group:SetTemplateCoalition(oldTemplate, coalition.side.RED) group:SetTemplateCountry(oldTemplate, country.id.RUSSIA) else group:SetTemplateCoalition(oldTemplate, coalition.side.BLUE) group:SetTemplateCountry(oldTemplate, country.id.USA) end env.info ("Group is succesfully converted") return group end:) Wingthor
  10. Just what I was looking for! Thanks... Regards and get well soon! Wingthor
  11. Since Moose is objcet programming oriented it shuld have a common snippet library. Does it exists? Here is my contrib.:) Converts Blue to Red GROUP (intstance) ---@param GROUP instance function convertBlueToRed(group) --Switch side of a group in the databse template if group~=nil then env.info ("Converting Blue to Red") local oldTemplate = group:GetTemplate() group:SetTemplateCoalition(oldTemplate, coalition.side.RED) group:SetTemplateCountry(oldTemplate, country.id.RUSSIA) env.info ("Group is succesfully converted") else env.info ("Convert Param is empty") end return group end Regards
  12. Changing the country only made it work. Wingthor
  13. I had a quick glance at MIST dynAdd function, and that one seems to do something with the countryID, but I am not an expert in MIST, so I can't confirm that mist.dynadd supports side swaps. Anyway for me its a "nice to have" feature.
  14. Thank you for a quick and comprehensive answer. Your suggestion worked to some extent. Basicily it was what I originaly did but I had swaped the args. Seems to be swapped in the docu too, cause in mine documentation it says coaltionID as first argument. Anyway, what happen is that Moose respawned an object as red, but not the same. The Blue SAM HAWK SR AN/MPQ-50 turned inot a Russian, red APC M1005 HMMWV. :) Will not stress you with this. Just a "nice to have" feature. Making a Arma III like "Zeuvs" function. Let me know if you want to see the code, if you think I might have done anything wrong. Regards Wingthor
  15. SetTemplateCoalition Hi. I'm struggeling with the SetTemplateCoalition in the GROUP class. Bascily what I want to do is change/tweak a group (HAWK SAM) coalition and country so it swithces side from blue to red side. The second paramater in this function SetTemplateCoalition(CoalitionID, Template) is CoaltionID. I have tried to find out what this is and how to retrieve it. Tried with the obvious "coalation.side.RED", but log complains "attempt to index local 'Template' (a number value)". How do I set this argument? Regards :) Wingthor
×
×
  • Create New...