Results 1 to 5 of 5

Thread: Spawning squads at a destroyable building

  1. #1

    Spawning squads at a destroyable building

    I was hoping to get some help on something that I'm trying to do.

    I'm trying to have a building that keeps spawning a squad once the previous squad has been entirely destroyed. I want the building to keep spawning these groups until the building has been destroyed.

    Does anyone know of an straightforward way to do this?

    THanks in advance.

  2. #2
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    Save script below as buildingspawn.sqf and put in your mission folder.
    info in the script on how to use.
    i have higlighted some of the commands used, you can search for them here to understand more and learn to manipulate the script if you want.

    Spoiler:
    My scripts:
    Spoiler:

    what to do when posting any kind of code dammit!!

    Any new mission editor or scripter in Arma2 should have read Mr Murrays Editing Guide Deluxe at least once, it still applies for A2 even though it was made for Armed Assault.

  3. #3
    Private First Class
    Join Date
    Apr 4 2007
    Posts
    28
    Author of the Thread
    Excellent. THanks so much! I'll give this a try tonight.

  4. #4
    Private First Class
    Join Date
    Apr 4 2007
    Posts
    28
    Author of the Thread
    Thanks for the script. It works quite well...

    However, is there any way for me to specify a task for the spawned groups? I would like for each spawned group to attack a position on the map.

    Thanks

  5. #5
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    Quote Originally Posted by RSharpe View Post
    Thanks for the script. It works quite well...

    However, is there any way for me to specify a task for the spawned groups? I would like for each spawned group to attack a position on the map.

    Thanks
    instead of this highlighted line:
    Code:
    // here we create a random patrol around the house.
    _patrol = [_group, _pos, 100] call bis_fnc_taskPatrol;
    you can create waypoints or use another script on them like UPS by kronzky, example waypoints:
    Code:
    _wp = _group addWaypoint [getMarkerPos "attackBase", 0];
    _wp setWaypointBehaviour "AWARE";
    _wp setWaypointType "SAD";  // search and destroy waypoint.
    here is info on addWaypoint:

    here is kronzkys great patroling script:

Posting Permissions

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