Skip to content

Instantly share code, notes, and snippets.

View jameslkingsley's full-sized avatar

James Kingsley jameslkingsley

View GitHub Profile
12:09:14 "Spawning Logic"
12:09:14 UnExpected call of CreateVehicle for 'Logic', pos(3999.972900.2,5.000000.2,4099.812988.2). Vehicles with brain cannot be created using 'createVehicle'!
12:09:14 "Spawning HeliH"
12:09:14 "Spawning Land_Bet_haus_2_bs_b"
12:09:14 "Spawning Land_Bet_haus_2_fw_a"
12:09:14 "Spawning Land_Bet_haus_2_fw_b"
12:09:14 "Spawning Land_Bet_haus_2_fw_c"
12:09:14 "Spawning Land_Bet_haus_2_fw_d"
12:09:14 "Spawning Land_Bet_haus_2_fw_e"
12:09:14 "Spawning Land_Bet_haus_3_fw_a"
private _objects = [
"Land_fort_bagfence_round",
"Land_fort_rampart",
"Land_fort_rampart_EP1",
"Land_fortified_nest_small",
"Land_fortified_nest_small_EP1",
"Land_Fort_Watchtower",
"Land_Fort_Watchtower_EP1",
"Land_fortified_nest_big_EP1",
"Land_fortified_nest_big",
// If player already has a map and it isn't a temp map, then exit the script
// If player already has a map and it is a temp map
// Close map
// Remove map from inventory
// Set the temp map variable to nil (remove from player)
// Exit script
// Get all players around a given radius of the player
// If one of them has a map (and it isn't a temp map)
class CfgPatches {
class RH_m4_cfg {
units[] =
{
"RH_m4m16ammobox"
};
weapons[] =
{
"RH_m16a1",
"RH_m16a1gl",
class CfgWeapons {
class HLC_M4;
class RH_M16A1: HLC_M4 {
// Stuff
};
};
// Example usage in objects init box
// null = [this, "Take Docs", "Abu is done...<br/><img image='map.paa'>"] execVM "intel.sqf";
params [
["_intel", objNull],
["_actionText", "Take Intel"],
["_intelContent", ""]
];
if (isNull _intel) exitWith {};
/*
* Author: <insert human>
* Creates lightning bolt effects in area
*
* Arguments:
* 0: Center of area (x, y, z) <ARRAY>
* 1: Radius of area <NUMBER>
* 2: Interval (seconds) <NUMBER>
*
* Return Value:
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"];
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"];
ARC_basebuilder_addObjectAction = {
_this addAction ["Pick up fort", {
params ["_target", "_caller", "_id"];
_target removeAction _id;
private _handle = [{
params ["_args", "_handle"];