Skip to content

Instantly share code, notes, and snippets.

@creativ3lab
creativ3lab / Mod.cpp
Last active February 11, 2021 05:54
This is my personal snippet code that goes too my website and has my name pre ready
name = ""; // name
picture = ""; // picture in expanded description
logoSmall = ""; // icon next to mod name when description is not expanded
logo = ""; // logo below game menu
logoOver = "" // on mouse hover over logo
tooltip = ""; // tool tip on mouse hover
overview = ""; // overview
action = "https://creativ3lab.com/"; // link
author = "Andrew Hjellming"; // author
version = "0.1"; // version
class CfgMod
{
class
{
Dir = "";
Picture = "";
Author = "";
Action = "";
HideName = "";
HidePicture = "";
string str="global scope";
void main()
{
string str="main scope";
if (true){
string str="if scope";
cout << str << endl;
}
cout << str << endl;
int foo = 42; // Value type.
object bar = foo; // foo is boxed to bar.
int foo2 = (int)bar; // Unboxed back to value type.
@creativ3lab
creativ3lab / Automatic type detection
Last active October 9, 2020 08:14
DayZ:Enforce #Script #Syntax
class MyCustomClass(){}
void Method()
{
auto variableName = 1; // variableName will be of type integer
auto variablePi = 3.14; // variablePi will be of type float
auto variableInst = new MyCustomClass(); // variableInst will be of type MyCustomClass
}
@creativ3lab
creativ3lab / Pragma header
Last active October 9, 2020 08:04
Enscript #DayZ #Arma3
/*
#pragma "(ReplacewithFilename)"
*/
#include "(ReplacewithFilename)\4_World\(ReplacewithFilename)\(ReplacewithFilename)"