Jump to content

Sideguy

Member
  • Content Count

    3
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Sideguy

  • Rank
    Rookie
  1. I have a script that I want to use on all AI units of a side, and I have no idea how to do so. The script itself is below, it simply makes a unit small. The reason why I want to apply it to all units of blufor is that I want to spawn in custom units and they get effected by the script. I did try and make a custom composition with this script, but I ran into the problem of only 1 ai unit being downsized and the unit that was previously downsized returning to normal size. If it is possible to figure out a way to have this be able to be in the init of the unit, and I can just spawn him in via zeus with custom compositions that would be great (could possibly make it into a mod--a Santa faction with elfs.). That's the solution I'd prefer, but I'd be fine with applying the script to either a group of ai or to the entire side. I'm pretty new to scripting, and have no idea what I'm looking for. Thanks for the help.
  2. Hey there, I'm making a custom faction mod and I'm wanting to randomize some of the equipment like their uniform, vests, and weapons. I've tried looking it up, but all I've found is just randomizing the equipment of AI in-game and stuff using the init of the AI itself. I'm using Alive to make the faction then exporting it out. This is what Alive faction editor generates: I know the FIA faction randomizes their facewear and headgear, though I forgot how they do so (I saw it on bohemias wiki but I can't find it again. Is there a way that I can add a script into my faction mod that will randomize the equipment or is there something I can change with the code to randomize it? Thanks
  3. 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?
×