Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: In search of a Base protector bubble script.  (Read 3620 times)

0 Members and 1 Guest are viewing this topic.

Offline Hooves

  • Members
  • *
In search of a Base protector bubble script.
« on: 24 Aug 2010, 03:19:33 »
In search of a Base protector bubble script.

  As the topic says.  I was wondering if anyone has or has come across a Base protector script.  One that prevents enemies coming in and both friendlies and enemies from firing out  of or into it.  If anyone can help Id appreciate it.

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: In search of a Base protector bubble script.
« Reply #1 on: 24 Aug 2010, 07:35:33 »
Code: [Select]
// Called by : game init
// Function area : gameplay

// Description
// Creates a blob that stops every bullet fired from inside and from outside into it.

#include "globalDefines.hpp"

private["_position","_shield"];

pos _position = _this;

_shield = "ProtectionZone_Ep1" createVehicleLocal (_position);
_shield setPos _position;
_shield setDir 0;
_shield setObjectTexture [0,"#(argb,8,8,3)color(0,0,0,0,ca)"];

_shield;

Check A&S ProMode or AAS code for more info.