Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: In my MP mission , how to spawn with same weapons as before i died ?

  1. #11
    Ive got it! , i just looked on how the demo mission did it , cheers guys!


    Ive tried looking for the vehicle one but I cant find a thread? if there one out there? and do you guys no of a script where say the tank (which has AI in it) gets destroyed but re spawns again with the ai in it and dose its way points?
    Last edited by kierandobbin54; Jul 21 2012 at 13:32.

  2. #12
    Vehicle respawn script on OFPEC

    Here's the same mission again with the vehicle respawn script. Note that this only respawns empty vehicles for players to use (or command their AI to use). AI will not automatically board available empty vehicles, that would all have to be scripted. For this vehicle respawn script the first vehicle placed down in the editor must have "vehicles = [this]" in its init line, all vehicles placed after that need to have "vehicles = vehicles + [this]" in their init lines.

    It really depends on what kind of mission you are making if you want AI to use vehicles. You can either use them in a "single player" style of spawning an entire crew, telling them to get in a vehicle (using script) then moving their waypoints around to control them, they then fight together as a team in the same way as they do in single player. The other style is if you want "bots" which act like spawned humans to occupy playable slots in a multiplayer mission, these are much harder to script, since generally they need to locate a vehicle (having decided they need one), decide which position they need to occupy then control the vehicle in a human like way. The last part is very challenging since a human player can control a tank by themselves, changing between the driver and gunner positions when necessary, an AI needs to be told via script when to change to gunner and when to drive.

    Either way it is quite a bit more complicated than the respawning empty vehicles or units with weapons. If you want examples of how to do it, you'll have to tell me which style of AI you want.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Spawn weapons to be picked up
    By Koni in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 9
    Last Post: Aug 5 2011, 09:11
  2. Mission Makers: How Do You Spawn Your AI?
    By The Hebrew Hammer in forum ARMA 2 & OA - QUESTIONS & ANSWERS
    Replies: 3
    Last Post: May 23 2011, 03:52
  3. In Need of help:Triggering weapons to spawn on the ground
    By Requiem007 in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 1
    Last Post: Nov 23 2010, 08:56
  4. have a script spawn a mission
    By joske in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 0
    Last Post: Nov 12 2009, 18:37
  5. AI spawn in Saboteur mission
    By JohnnyBoy in forum ARMA - OFFICIAL MISSIONS
    Replies: 2
    Last Post: Feb 14 2007, 09:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •