Jump to content

polkaboy

Member
  • Content Count

    6
  • Joined

  • Last visited

  • Medals

Posts posted by polkaboy


  1. I have using Bon's excellent ai recruit script for a long time and I decided it would be great if the player could activate the script instead of assigning the script to an object. For those that don't know, this is a script that brings up a menu for the player to click on to recruit new units. I have changed the script so that the player can call up the Recruit menu and call in soldiers at his location that come in parachutes. The problem I have is that I cannot get the script to work when the player dies and respawns. I have spent hours researching the forums and I cannot come up with a working solution. Here are my init lines:

    init.sqf:

    [] execVM "bon_recruit_units\init.sqf";

    player's init line:

    this addAction ["Recruit Units", "bon_recruit_units\open_dialog.sqf"]; this addEventHandler ["killed", {this execVM "bon_recruit_units\open_dialog.sqf"}];

    I have modified the "this" in addeventhandler to read: this, _this, (this, 0), (_this, 0), and nothing seems to work. When my player respawns, there is no Recruit Units menu. If I move my mouse cursor over the original player's dead body, I do see the Recruit Units menu. Any suggestions?

    Robert W


  2. Hello, I have read a few threads regarding this, but I haven't been able to get what I want out of them so here goes.

    First, I want to have an air or ground vehicle respawn with crew inside after it's destroyed and reappear at the original starting location of that vehicle. With some of the scripts I have seen the respawning location was always at a marker rather then the original location. Also, with a vehicle named AH64_1, I would like it to respawn with that same name. Plus, I would like the vehicle to respawn with an init line. I have been using Tophe's excellent vehicle respawn script but it doesn't work with a crewed vehicle.

    Second, I want to create a group of infantry units linked to me (so I can command them using function keys) and I want to create a respawn script to have them respawn with an init line at their original starting location and still be under my command.

    PB

×