SamplePage: Difference between revisions

From FPArma Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:


== Example of Syntax Highlighting ==
== Example of Syntax Highlighting ==
The Highlighting  makes use of the SyntaxHighlight Plugin which makes use of the Python tool "Pygments" https://www.mediawiki.org/wiki/Extension:SyntaxHighlight
The Highlighting  makes use of the SyntaxHighlight Plugin which makes use of the Python tool "Pygments"  
* https://www.mediawiki.org/wiki/Extension:SyntaxHighlight
 
See the following site if you want to see the supported languages:
* http://pygments.org/


=== Python Code ===
=== Python Code ===

Revision as of 18:42, 12 July 2017

Example of Syntax Highlighting

The Highlighting makes use of the SyntaxHighlight Plugin which makes use of the Python tool "Pygments"

See the following site if you want to see the supported languages:

Python Code

def quickSort(arr):
	less = []
	pivotList = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass

SQF Code

enableSaving [false,false];

// These are the recommended settings for view distance based on zombie distance spawning. 
// You can change them but remember to edit config.sqf if zombies are spawning within visible range
// The reason fog is set here is because then it won't take into account height
0 setFog 0.73;
setViewDistance 800;
setObjectViewDistance 600;

if (isServer) then {
  forceWeatherChange;
};

// Config should be set first
[] call compile preprocessFileLineNumbers "config.sqf";
// Start FPZ
[] call fpz_api_fnc_init;

HPP / EXT Files

class Header
{
  gameType = Coop;
  minPlayers = 1;
  maxPlayers = 64;
};
disabledAI = 1;

// ===  Mission name etc settings
OnLoadName = "FPZ Template v1.0";// Mission name (short)
briefingName = "FPZ Template v1.0"; // mission selection name
onLoadMission="description.ext to change!"; // Longer description
// loadScreen = "img_loading.jpg"; // custom load image
author="Cuel | 2017";


Hotlinking Images

Embed a Video