OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: Hooves 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.
-
// 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.