Jump to content
Sign in to follow this  
anarcho

marker names and briefing.sqf

Recommended Posts

Been using -showScriptErrors to test for mission errors on my missions and main errors i seem to have always seem to point to the briefing.sqf. Anyone what i'm doing wrong and what the error means. Wasn't sure but wondered if it was something to do with the names i called the markers?

error.jpg

player createDiaryRecord["Diary", ["Revolution Part 4", "You are a small group of armchair revolutionaries who have spent years talking about revolution but never doing anything. However now is the time to act."]]; 
player createDiaryRecord ["Diary",["Credits","Mission by anarcho with help from Zapperguy. Created for the LOL server. <img image='raf.paa' width='305' height='300'/>"]];
player createDiaryRecord["Diary", ["Briefing", "Six months earlier, you and your team of urban guerrillas from Germany have gone to Lebanon for arms training with the popular front for the liberation of Palestine (PFLP). With the collapse of Islamic fundamentalism around the world the re-emergence of popular guerrilla groups based on the model from the 70's. The new democratically elected government of Lebanon has agreed to let the PFLP to use its country to wage war on Israel. Due to this the US has invaded Lebanon again. Heavy fighting is going off in the town of Kinsella you will be dropped in north of the city, arm up at the ammo crates <marker name='a1'>here</marker>. Satchels can be found <marker name='a2'>here</marker> Help the PFLP forces in their attack, destroy the radar tower <marker name='mtm'>here</marker> and the US HQ near the hotel <marker name='hq'>here</marker> then destroy the plane at the <marker name='mtb'>airport</marker>. extraction zone is <marker name='ext'>here</marker><img image='gaza1.jpg' width='512' height='256'/>"]];

tskarea4 = player createSimpleTask["Extract to the safe area."];
tskarea4 setSimpleTaskDescription["Extract to the safe <marker name='ext'>area</marker>.", "Extract to the safe area.", "Extract to the safe area."];
tskarea4 setSimpleTaskDestination (getMarkerPos "ext");

tskarea3 = player createSimpleTask["Destroy the enemy plane."];
tskarea3 setSimpleTaskDescription["Destroy the enemy <marker name='mtb'>plane</marker>.", "Destroy the enemy plane.", "Steal the enemy planes."]; 
tskarea3 setSimpleTaskDestination (getMarkerPos "mtb");

tskarea2 = player createSimpleTask["Destroy the HQ."];
tskarea2 setSimpleTaskDescription["Destroy the <marker name='hq'>HQ</marker>.", "Destroy the HQ.", "Destroy the HQ."];
tskarea2 setSimpleTaskDestination (getMarkerPos "hq");

tskarea1 = player createSimpleTask["Destroy the radar"];
tskarea1 setSimpleTaskDescription["Destroy the <marker name='mtm'>radar</marker>.", "Destroy the radar.", "Destroy the radar."];
tskarea1 setSimpleTaskDestination (getMarkerPos "mtm");





player setCurrentTask area1;
player setCurrentTask area2;
player setCurrentTask area3;
player setCurrentTask area4;

Share this post


Link to post
Share on other sites

Firstly

player setCurrentTask area1;

should be-

player setCurrentTask tskarea1; (as you named it in the setSimpleTaskDescription)

Secondly and not so important the setCurrentTask command is only needed for the Task you wish the player to start the game with as his active mission, therefore only 1 is needed -

(ie player setCurrentTask tskarea1; will start the game with "Destroy the radar" as the current objective , HUD markers etc)

Hope this helps

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×