Home   Help Search Login Register  

Author Topic: In search of a Base protector bubble script.  (Read 1560 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.