Jump to content

Mangrove Jack

Members
  • Posts

    106
  • Joined

  • Last visited

Everything posted by Mangrove Jack

  1. I certainly appreciate that. I did try but because this is all new I did not understand to replace the previous scheduleFunction with your timer hense - no work.:doh: It now works that I got that into my head. Also took your advise and been looking at Moose vids and docs for the last few hours to see ware that takes me. Thanks again Hardcard
  2. Hardcard thanks for your valuable input. Your suggested code in post #3 is counting blue planes as need. So thanks very much. I tried to get the stop flag to end function but could not get it to work. Hopefully Grimes may be able to comment of that if he sees this. Cheers
  3. Thanks for comment and feedback Hardcard. I have looked at others but will again. Initial look at MOOSE felt a bit daunting. But will look at both again. Meanwhile I will work with what you have suggested. I would also like to stop the function with a flag rather than let it run too long. I assume that is added at end? something like: if trigger.action.getUserFlag(5000)= true then mist.removeFunction(check) end Cheers
  4. It takes practice I know but it will come to you. I normally do gear down and flaps at basically same time - often in turn- but I am straight onto trim to get the AOA correct and moving throttle to keep speed good. The are many posts here and a number of videos as well. Search through here for more info.
  5. Still struggling with this. The "count of players in zone" to me is not working and it seems to me to be related with the local count. Is it not possible to do a count of units in the way I am trying and then setting flag to equal count value?
  6. Yep I get it - I know what you mean. Unfortunately I don't have the answer
  7. I am seeking script help from those experience people. I am 1st to say I don't know much but am trying to learn. I have MP mission (half finished) based from carrier and it will random spawn JTAC and subsequent random spawn units. It works at this point based on part of coalition in zone. I can leave like it is but that does not teach me anything on scripting. So after much reading and great posts from Grimes and others I have managed to couple together some code in a test mission that seems to work to a degree but still feel room for improvement. I am counting client planes and counting blue planes (really only interested in client planes) in zone and setting 2 flags to the counts. It works but only after adding 'Part of Coalition in Zone' to condition which I don't understand. In particular is this code correct? --for count of players in zone local count = 0 local blueunits = mist.makeUnitTable({'[blue][plane]'}) local zone_names = trigger.misc.getZone('Staging Zone') -- get the trigger zone local inZone = {} -- table of units inside the zone local function check() for i = 1, #blueunits do -- iterate through the units if Unit.getByName(blueunits[i]) then -- if returned local u = Unit.getByName(blueunits[i]) if mist.utils.get2DDist(u:getPosition().p, zone.point) < zone.radius then -- if it is in the zone if not inZone[u:getName()] then -- if it wasn't there before inZone[u:getName()] = true -- add it to zone list end else -- if not in zone if inZone[u:getName()] then -- if was previously in zone inZone[u:getName()] = nil -- clear from list end end end end end count = count + 1 trigger.action.setUserFlag(200, count) trigger.action.outText( 'Flag 200: ' .. trigger.misc.getUserFlag ( '200' ), 10 ) mist.scheduleFunction(check, {}, timer.getTime()+6, 6, timer.getTime()+ 300) Is it possible/better to change spawn based on the 2 flags being equal and setting another flag true? I tried that but I got error code on that Any help and suggestions/improvements appreciated Iterate units Staging Zone .miz
  8. No agree you cannot - it states the obvious which is why I started with part of coalition. However I did wounder about scripts but that may prove beyond me anyway. eg count the ac in/out a moving zone on carrier over a given period (around mission start) and compare to ac in trigger zone. Anyone into sea off carrier poses some problems maybe. Thanks for that - a way to handle much better than original starting point. Maybe not dissimilar to above maybe?
  9. In a MP co-op is there a way to use a trigger to work when all players are in trigger? - given you don't know how many players (never big numbers) will be be in mission at any given time. Currently I have set trigger to"Part of Coalition in Zone". This works of course but 1st person in zone triggers it and I would prefer all in mission to be in zone to be the trigger action.
  10. I have managed to do a random spawn of 1 of 4 jtac's and spawn ground AI vehicle group (armour) and AI Helicopter Group based on jtac spawn. However I would like to do a random spawn of the number of units in the vehicle group and chopper group (also maybe types of units if possible?) but cannot find references at this point that helps me. Anyone able to say how or point me in direction of information?
  11. A further question on deactivation: I now know I cannot re-activate a deactivated unit. However I would like to simulate an extraction process after deactivation or even when JTAC gets found by Ground Escort Chopper and fired upon before deactivation occurs. This could either be the JTAC actually survives or is wounded or body bag via say a chopper out (Medivac?). Is there a way to simulate the original JTAC unit call it JTAC2 being reactivated in a different location for the extraction?
  12. OK Grimes I understand what you mean. But never looked in code before your post so 2 questions. If I comment out that line then whenever CTLD is called in other missions this same scenario would eventuate true? and If new code released (I do not know chance) then this comment out would be lost?
  13. New to mission build so got lots to learn. I have managed to get a JTAC (Soldier) to lase a specific vehicle (used CTLD). On vehicle reaching a trigger I want to deactivate the JTAC which I have done through the editor. On deactivation I want a specific message to appear and that works. However I also get 2nd message that JTAC is "KIA" which it was not. Is there a way to stop the KIA message which seems to be built in to the editors Deactivate.
  14. Thanks for reply Hollywood. Viacom Pro was out of date but only by 1 (this has been happening from install) and VA was up to date. I updated and it still happens every time, which forces me out of program to achieve takeoff. Is there a log that can be activated to maybe see what is going on?
  15. I am having trouble getting a command to work correctly - Command "Chief Remove Wheel Chocks" this is in FA18 I have Easy Communications on and Radio to TX1. I can request Startup and that works most of the time. When I ask for: "Chief Remove Wheel Chocks" I end up outside aircraft - every time. It's like it is activating "F2". To get chocks removed I need to turn menu back on and go through menu. Any suggestions on a fix?
  16. I am new to Viacom but have some questions (have pro version and use Easy Communications and single PTT - also am referring to when in FA18 ) 1. Am I correct in saying I need to turn Battery "ON" to start communications? 2. How do I contact Stennis ATC is it anything special in words? 3. After getting clear to start (which seems hit and miss) and I ask "Chief to Remove Wheel Chocks" I get no response. But if I hit "F11" which takes menu back to main menu I get a response to "Chief to Remove Wheel Chocks". Similar situation to if I want to abort takeoff. It seems to me that the key presses in "Actions" are not leaving menu at correct level. Is this correct, as it seems to be unhelpful to have to hit "F11" to get a voice command to work. Or am I up the wrong creek so to speak?
  17. Yep thanks for thoughts all. I think the 1st couple of experiments had the position too low and close. Seems like a centre stick will work for me. Gives me more confidence to outlay the higher costs. Cheers
  18. I currently have an Saitek X52 Pro which is on last legs and I will move to better class of stick eg Virpil. I am looking at the T50CM2 or VKB and mount it in centre but have no experience in this configuration. I have tried to simulate this setup with the X52 and it raised a concern for myself. So I was interested in others thoughts that have centre mounted sticks and have also maybe used side mount sticks. The issue is around getting to buttons on sticks while climbing in the sim. All seems good with centre mounts while diving and rolling (from my test with X52) however when climbing it seems there could be challenges getting to some buttons when a stick is pulled ring back to climb. Maybe it could be just my wrist and thumb dexterity or it could be a issue that others have encountered. Looking for experience and thoughts from others. I am not worried about realism in that I need to have a centre stick because the plane in sim had a centre stick. If I need to go to a side mount I will.
  19. No I had not heard or seen it.
  20. I'll second that particularly colour change options. Old farts like me have more and more troubles with colour and text size. Maybe even some of the younger guns as well:)
  21. Thanks for video link. That was nice to view. It covered activation key but does not mention chatter as separate activation to Viacom Pro. So still not sure how to implement. Does it go in same fields as Pro Key. I was reluctant to do that as I thought Pro key would be overwritten? Fixed Took the chance add added in same place as Pro so it now works with chatter!
  22. Just downloaded Pro version and setup with great program along with VA. Just a quick question on the Chatter Themes extension pack. I cannot select "Link to Radio Power". I suspect that it is related to license which I have not entered anywhere. Where should I go to enter the number. I have updated license for Viacom itself no problem. Just cannot find where to put chatter code.
  23. Nice work on re-work of the X52 (been thinking on similar for an X52Pro/X55 for a while). Did you get the thumb wheel working yet and is it the original from X52?
  24. I don't use Saitek Programming software. All I did was added the Pinkie to the Modifiers list in DCS and it seems to be ok for me.
×
×
  • Create New...