SamplePage: Difference between revisions

From FPArma Wiki
Jump to navigation Jump to search
mNo edit summary
Line 2: Line 2:
== Example of Syntax Highlighting ==
== Example of Syntax Highlighting ==


=== Python Code ===
<syntaxhighlight lang="python" line='line'>
<syntaxhighlight lang="python" line='line'>
def quickSort(arr):
def quickSort(arr):
Line 13: Line 14:
</syntaxhighlight>
</syntaxhighlight>


 
=== SQF Code ===
<syntaxhighlight lang="C++" line='line'>
<syntaxhighlight lang="C++" line='line'>
enableSaving [false,false];
enableSaving [false,false];


// These are the recommended settings for view distance based on zombie distance spawning.  
// These are the recommended settings for view distance based on zombie distance spawning.  
Line 34: Line 34:
[] call fpz_api_fnc_init;
[] call fpz_api_fnc_init;
</syntaxhighlight>
</syntaxhighlight>
=== HPP / EXT Files ===
<syntaxhighlight lang="C++" line='line'>
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";
</syntaxhighlight>


== Hotlinking Images ==
== Hotlinking Images ==

Revision as of 18:40, 12 July 2017

Example of Syntax Highlighting

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