Announcement

Collapse
No announcement yet.

Script Request: Script to open all building doors within a radius

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script Request: Script to open all building doors within a radius

    There is a module within ARMA that is supposed to open or close all doors within a radius, but it causes issues in multiplayer.

    Is there a scripted method to accomplish this which references an editor-place game logic as the center of the radius? Or maybe a marker?


    Thanks in advance if you can assist me.

    Current ARMA Development Project: No Current Project

    "An infantryman needs a leader to be the standard against which he can judge all soldiers."

    Friend of |TG| Chief

  • #2
    untested but i dont know another way to query all the doors animations on a house.

    Code:
    _nothing = ["sampleMarker",sampleRadius] call openDoors;

    Code:
    openDoors = {    
    
        _houses = nearestObjects [getMarkerPos (_this select 0), ["house"], _this select 1];
    
        {
            _house = _x;
            {    
                _house animate [_x, 1];
            } forEach (animationNames _x);
        } forEach _houses;
    };
    Yink | Vanilla Pilot | Killer of Stirling | CS GOD | Projects Team

    Comment


    • #3
      Thanks Yink. I actually figured it out this afternoon.

      Still, I'll test your script and reply soon.

      Current ARMA Development Project: No Current Project

      "An infantryman needs a leader to be the standard against which he can judge all soldiers."

      Friend of |TG| Chief

      Comment


      • #4
        How did you end up doing it? im actually pretty curious.
        Yink | Vanilla Pilot | Killer of Stirling | CS GOD | Projects Team

        Comment

        Connect

        Collapse

        TeamSpeak 3 Server

        Collapse

        Advertisement

        Collapse

        Twitter Feed

        Collapse

        Working...
        X