Jump to content

DCS.Tyrant

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by DCS.Tyrant

  1. One final question regarding the message it gives once a group is destroyed. The 6 at the end, thats display time correct? so if I change that to 15, it should be on screen for 15 seconds ? trigger.action.outText("Group " .. groupName .. " destroyed. Reinforcements incoming in 120 seconds...", 6, true)
  2. This seems to be working, so if I understand correctly, I give every group a unique name, and give each group their own trigger, with the code. The Function I only have to add once, in a seperate trigger, correct?
  3. I also don't really understand why it would constantly reschedule, how would I fit this, to just have it schedule a single respawn after every group kill ?
  4. Changing it to false made it spam the message over and over again. until the actual respawn happens. So if I set the timer of the respawn to 15 minutes, the message will keep spamming for 15 minutes. My original problem was that the message doesn't disappear, not that it spams, it just stays on the screen. I tried adding: msg.displayTime = 25 but it didnt work for some reason.
  5. I havent noticed a lot of respawns, that is not what I meant with the messages. The issue is, the message stays in the screen for as long as I set the respawn timer at, so if I say, respawn a group after 5 minutes, the message will stay in screen for 5 minutes. Now lets say, People on the server kill 10 groups, all with a respawn timer, the screen will get cluttered with those messages that wont go away until the respawn actually happens. I tried adding: msg.displayTime = 15 but for some reason I cant get it to work, or my implementation of it in the code line is faulty... it's not giving me an error message.
  6. I indeed received several solutions, thank you so much! I will try them all and hopefully I can learn to do things like this a bit better, thanks to your help.
  7. I currently have this: if not Group.getByName('RUS-RESPW-TEST-1') then trigger.action.outText("Russian T90 Destroyed. Reinforcements incoming in 120 seconds...", 6, true) timer.scheduleFunction(myRespawnGroup, 'RUS-RESPW-TEST-1', timer.getTime() + 120) end With an function in a seperate trigger: function myRespawnGroup(groupName) mist.respawnGroup(groupName, true) end This code works, However, the message that it gives, saying, they died stays in screen for 120 seconds, or for as long as I set the timer to... which can fill up the screen rapidly when several groups are being killed close together.
  8. Thank you for your example, I am not a 100% clear on the last line: rusB6Respawn = nil -- delete value so it can be created again with the initial check The rest I understand and it should work for what I am trying to do but I have to be honest, I understand the code and what it does, but to write my own is still something I am unable to do. My coding skills are, let's say, lacking. It's like reading German, I know what it says and I can generally follow, but to speak the language is something else, it that makes sense.
  9. Hey guys & gals, I am working on getting respawning on a timer to work, using Mist script. I have instant respawn working with the following script: if not Group.getByName('RUS-T72B-6') then mist.respawnGroup('RUS-T72B-6', true) end but now I want certain groups to respawn after a certain amount of minutes so they dont respawn in your face right away. I used: if not Group.getByName('RUS-T72B-6') then mist.respawnGroup('RUS-T72B-6', 120) end but they keep respawning instantly, the timer doesn't work and I cant find anything that will work with this simple script. I do have to say, this is my first time using anything like Mist, the coding is new to me, I get the basics but I cant do anything fancy with it yet. Could I get some help with just a simple respawn timer script? Best Regards & Thanks in advance.
  10. Hey guys & gals, I am working on getting respawning on a timer to work, using Mist script. I have instant respawn working with the following script: if not Group.getByName('RUS-T72B-6') then mist.respawnGroup('RUS-T72B-6', true) end but now I want certain groups to respawn after a certain amount of minutes so they dont respawn in your face right away. I used: if not Group.getByName('RUS-T72B-6') then mist.respawnGroup('RUS-T72B-6', 120) end but they keep respawning instantly, the timer doesn't work and I cant find anything that will work with this simple script. I do have to say, this is my first time using anything like Mist, the coding is new to me, I get the basics but I cant do anything fancy with it yet. Could I get some help with just a simple respawn timer script? Best Regards & Thanks in advance.
×
×
  • Create New...