OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Rytuklis on 28 Aug 2012, 12:57:15
-
//////////////////////////////////////////////////////////////////////////
// Operation Flashpoint Description File
// Generated by Chris' OFP Script Editor
// Version 3.1.0000
//////////////////////////////////////////////////////////////////////////
class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {intro};
// Class definition needed for each sound
class intro
{
// Name to display in mission editor
name = "intro";
// Sound path, volume, pitch
sound[] = {\sound\intro.ogg, db + 10, 1.0};
// Sound title text (set to no text)
titles[] = {0, ""};
};
};
class CfgIdentities
{
class Slava
{
name = "Commander Slava";
face = "Face1";
glasses="None";
speaker = "Dan";
pitch = 1.00;
};
};
{
class Tomas
{
name="Commander Tomas";
face="Face14";
glasses="None";
speaker="Adam";
pitch=1.1;
};
};
I dont understand what's wrong with the code. When i want to load my mission with this Description.ext i get an error about some brackets encountered instead of equals.
-
The problem is that you've got brackets and semi-colons in the wrong places. Try this:
class CfgIdentities
{
class webb
{
name = "David Webb";
face = "face7";
glasses = "none";
speaker = "Jonah";
pitch = 1.0;
};
class jackson
{
name = "Eugene Jackson";
face = "face25";
glasses = "none";
speaker = "Peter";
pitch = 1.0;
};
class preacher
{
name = "Robert Preacher";
face = "face16";
glasses = "none";
speaker = "Rob";
pitch = 1.0;
};
};
-
It worked. Thank you for your help :good: :clap: