Skip to content

Instantly share code, notes, and snippets.

View jameslkingsley's full-sized avatar

James Kingsley jameslkingsley

View GitHub Profile
private _objects = ["Land_PillboxBunker_01_rectangle_F", "Land_PillboxBunker_01_big_F", "Land_PillboxBunker_01_hex_F"];
ARC_basebuilder_addObjectAction = {
_this addAction ["Pick up fort", {
params ["_target", "_caller", "_id"];
_target removeAction _id;
private _handle = [{
params ["_args", "_handle"];
private _objects = ["Land_PillboxBunker_01_rectangle_F", "Land_PillboxBunker_01_big_F", "Land_PillboxBunker_01_hex_F"];
{
{
_x addAction ["Pick up fort", {
params ["_target", "_caller", "_id"];
_target removeAction _id;
private _handle = [{
{
{
_x addAction ["Pick up fort", {
[{
params ["_args", "_handle"];
_args params ["_target", "_caller"];
private _start = AGLtoASL positionCameraToWorld [0,0,0];
private _end = (_start vectorAdd (getCameraViewDirection _caller vectorMultiply 5));
// addAction to wreck
wreck addAction ["Detonate", {
params ["_target", "_caller"];
// Spawns Explosion
private _bomb = "Bo_GBU12_LGB" createVehicle getPos _target;
// Hides wreck
hideObject _target;
//addAction to wreck
wreck addAction ["Detonate",{
// Spawns Explosion
bomb = "Bo_GBU12_LGB" createVehicle getPos wreck;
//Removes Wreck
hideObject Wreck;
//Tells OPFOR they got Wrecked
hint "The Helicopter has been Destroyed!";
/*
* Author: Kingsley, 654wak654
* Draws a bounding box around the given object in 3D space
* Must be called every frame
*
* Arguments:
* 0: Object <OBJECT>
* 1: Color (optional) <RGBA ARRAY>
* 2: Offset in world position (AGL) (optional) <ARRAY>
* 3: Rotation of bounding box (optional) <NUMBER>
/*
* Author: Kingsley
*
*
* Arguments:
*
*
* Return Value:
*
*
// Only execute this script on the server
if (!isServer) exitWith {};
// Time in seconds to start the countdown from
ARC_timer = 300;
[{
// Process arguments passed by CBA_fnc_addPerFrameHandler
params ["_args", "_handle"];
<!DOCTYPE html>
<html>
<head>
<title>Framework Release - Mars - Arma 3 Mod</title>
<meta charset="utf-8" />
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
/*
* Author: Kingsley
* Calls the given code over multiple frames until all code has been executed
* Think of this as a PFH version of spawn
*
* Arguments:
* 0: Code to execute <CODE/STRING>
* 1: Arguments to pass to code <ARRAY>
* 2: Number of lines to execute per frame <NUMBER>
*