I'm trying to make a mission where the players are being transported to a base with helicopters, but then the helicopters would crash land. I want everyone except the AI pilots to survive. I was kinda successful in doing so by using two triggers, one that made the players invincible and a second one that made then vulnerable after a set time. The problem was that they were unconscious when the helicopter landed, and after the second trigger fired they all died in the fire. I'm using ace medical, so I think the allowDamage command works fully. I was also thinking of being able to teleport them outside of the vehicle and have them wake up, but I fear that it will either take too long for them to wake up or that they might get teled through the map.
I also looked up and found this thread. I thought I might be doing everything wrong, and I was just making the players invincible and then vulnerable right before the helicopter exploded. I saw this line of code that supposedly makes players invincible in vehicles and has a blacklist on certain vehicles:
I don't understand what values I'd need to change, or what to even set this on. Also, someone said that this line of code had an error. I couldn't even begin to figure out what that error was and how to fix it. Does anyone have any clues?