Jump to content
NOTICE:
  • The website is currently undergoing some updates.
Sign in to follow this  
CyphasCayne

Useful Mission Editing Commands

Recommended Posts

By request of members wanting to edit missions themselves, i have put up commands i know that are useful for editing.

If you know any commands that are easy to use, post them here and i will update the op.

// ====================================================================================
//Dynamic Markers
// ====================================================================================

<marker name = obj1>###</marker>

// ====================================================================================
// Virtual Arsenal
// ====================================================================================

this addaction ["Open Virtual Arsenal", { ["Open",true] call BIS_fnc_arsenal; }];
	//Remove Arsenal
	removeAllActions ###
	
// ====================================================================================
//Unlimited Ammo
// ====================================================================================

this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}]

// ====================================================================================
// AttachTo
// ====================================================================================

name attachTo [name, [#,#,#]];

// ====================================================================================
//Zues stuff
// ====================================================================================

[this, [-1, -2, 0]] call bis_fnc_setcuratorvisionmodes; PLAYERNAME setVariable ["showNotification", false]

Owner in game master module needs to be the players steam UID

// ====================================================================================
// Removing stuff
// ====================================================================================

RemoveAllItems this ;
removeUniform this;
this addUniform "name";
Removevest this;
this addvest "name";
removeHeadgear this;
this addHeadgear "name";
removeAllWeapons this;

to add weapons, add the magazines first, then weapon:
this addmagazine "name";
this addweapon "name";


To remove NVG:
this unassignItem "NVGoggles";
this removeItem "NVGoggles";

To add goggles/glasses:
this addGoggles "name";

You can also use:
this additem "name";
to add items like medkits.

and:
this addPrimaryWeaponItem "name";
to add stuff to guns. (command is different for primary/secondary, obviously).

// ====================================================================================
//Blowing up cities
// ====================================================================================

	["####",500,42[]] call BIS_fnc_destroyCity;

// ====================================================================================
// variable spawns
// ====================================================================================

	//Trigger Condition
	
	this && (({side _x == WEST} count thisList > 0) && ({side _x == EAST} count thisList == 0))
	
	//activation
	
	respawn1 = [west, (getPos triggername)] call BIS_fnc_addRespawnPosition;
	
	//deactivation
	
	[west, (respawn1 select 1)] call BIS_fnc_removeRespawnPosition;
	
// ====================================================================================
// Remove ACE3 player G_Force
// ====================================================================================

	player setVariable ["ACE_GForceCoef", 0];

// ====================================================================================
// Set Taget hostility
// ====================================================================================
//	to make side enemy
	side setFriend [side, 0];
	
// to make them friendly
	side setFriend [side, 1];	

 

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

a6VQiLj.png

Spartan Tactical Group

The Spartan Tactical Group was organized in early 2016 to create a community for like-minded gamers. With a focus on teamwork, tactics and communication the group provides an experience lacking from many modern military shooters of today. Understanding the importance of brotherhood before victory, Spartan Tactical strives for a relaxed and light-hearted approach to not only the game, but our community as well. Hailing from all different backgrounds and walks of life, our membership is valued and our friends respected.

No matter the challenge, Spartans stand ready to answer the call.

Follow Us

Powered By

×