Jump to content
JCataclisma

[READY] Instantly blow away players, objects or yourself via script

Recommended Posts

Because sometimes a warning or an elegant request might not be enough. 🤣
Can be used straight at the devTerminal, or be called with execVM as an external .SQF.
 

Spoiler

// Use this in the devTerminal (dedicated server ready) while pointing at another player or at ANY objects with simulation enabled;
_velocity = velocity cursorObject;
_direction = getPos cursorObject;
// "punido" means "was punished" in BR Portuguese - change it if you will, but remember to change it in other lines as well
_punido = cursorObject;
//the line bellow determines the DISTANCE into which the target will be sent: [east(+)/west(-),north(+)/south(-),height];
cursorObject setPos [(getPos cursorObject select 0) -770, (getPos cursorObject select 1) -770, (getPos cursorObject select 2) +116];
//this line is optional, so that target will be immediately and instantly facing to the point where it was prior to be "ejected";
cursorObject setVectorDir _direction;
//this sets the velocities in different directions, so the target will be "travelling" in sky instead of just falling down :-D ;
_punido setVelocity [116,183,142];


// The code bellow is basically the same, but if you want to apply it to youself, whether for testing or for fun;
_velocity = velocity player;
_direction = getPos player;
_punido = player;
player setPos [(getPos player select 0) -770, (getPos player select 1) -770, (getPos player select 2) +116];
player setVectorDir _direction;
_punido setVelocity [116,183,142];

 


Video example:
https://rumble.com/v3a20un-arma-3-punishment-script.html

Edited by JCataclisma
  • Like 1
  • Haha 1

Share this post


Link to post
Share on other sites

Or something spectacular (based on BI lightning):


 

cursorObject spawn {
  _pos = getPosATL _this;
  _bolt = createvehicle ["LightningBolt",[0,0,0],[],0,"CAN_COLLIDE"];
  _bolt setposatl _pos;
  _bolt setdamage 1;
  if (_this isKindOf "CAManBase") then {_this addForce [_this vectorModelToWorld [0,0,3000], _this selectionPosition "rightfoot"]};
  _light = "#lightpoint" createvehicle _pos;
  _lightCode = compileFinal "
    params ['_light','_pos'];
    _light setposatl [_pos select 0,_pos select 1,(_pos select 2) + 10];
    _light setLightDayLight true;
    _light setLightBrightness 300;
    _light setLightAmbient [0.05, 0.05, 0.1];
    _light setlightcolor [1, 1, 2];
    sleep 0.3;
    _light setLightBrightness 0;
  ";
  [_light,_pos] remoteExec ["_lightCode"];
  sleep random 0.3;
  _class = selectRandom ["lightning1_F","lightning2_F"];
  _lightning = _class createvehicle [0,0,100];
  _lightning setdir random 360;
  _lightning setpos _pos;
  for "_i" from 0 to 3 + random 1 do {
    sleep 0.1;
    _bright = 100 + random 100;
    [_light,_bright] remoteExec ["setLightBrightness"];
  };
  deletevehicle _lightning;
  deletevehicle _light;
};

 

  • Like 3
  • Haha 1

Share this post


Link to post
Share on other sites
9 hours ago, pierremgi said:

Or something spectacular (based on BI lightning):


 

 


Upgrading and updating NOW! 😁
Thank you!

Share this post


Link to post
Share on other sites

Both in fact!
Btw, Rumble is no more accessible in France for a reason you can find on net.
"Because of French government demands to remove creators from our platform, Rumble is currently unavailable in France. We are challenging these government demands and hope to restore access soon."

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×