Jump to content
Sign in to follow this  
der.hannes

keep tasks after respawn

Recommended Posts

hi

i made a mission with 3 different jobs + SOM, its meant to play mith my friend in lan (2 players in one squad).

but if iam getting killed and then respawned (respawn=2; respawndelay=30), i dont have any jobs or notes on in the job menu anymore.

how can i keep the jobs even after respawn?

and how can i make sure that iam allways the teamleader after spawning?

thx

Edited by der.hannes

Share this post


Link to post
Share on other sites

sometimes iam not sure about my english...

with tasks i meant jobs/missions and also the notes are away after respawning in mp. would be very nice if one knows a solution or tells me if its a bug. in arma1 i had not such a problem

Share this post


Link to post
Share on other sites

got the same problem now. (respawn = 3;respawnDelay = 60;)

i think you should add your own tasks via script again (just like the first time, but now check if they are succeeded or failed)

but how to add the tasks of the som modul again i don't know (still i don't know if the som modul is synchronized to the spawned player)

ah and dont ask how to trigger a spawned player, don't know either^^

Share this post


Link to post
Share on other sites

I really want to know if there's a better solution than reassigning all the tasks and checking whether they have been succeeded, failed or neither. That would be horribly tedious.

Why are the tasks lost anyway? Is this a bug? Like der.hannes, I cannot recall this behaviour in ArmA1 (or OFP).

Edit: Actually reassigning the tasks doesn't even work. A task was supposed to be added to my log at a certain point in my mission, but as I had died/respawned the task tab wasn't added back, nor was the briefing entry added. The marker for the objective was added, however.

I'll check the bugtracker if it has been added already, and if not, I will.

Edit 2:

Issue on bugtracker:

http://dev-heaven.net/issues/show/1739

Edited by IceShade

Share this post


Link to post
Share on other sites

Any news about it? :( I managed to add the tasks after the respawn but the taskstate doesn't get updated. It's impossible to see if a task has been completed or canceled during the mission after the player respawns. And it's even worse than that. If you set a trigger and asking for the taskstate via the taskstate-scripting-command the trigger won't work anymore.

Share this post


Link to post
Share on other sites

I'm also lookin for a solution to the taskstate updating on respawn. I can get the tasks and diary back into the map its not up to date.

Share this post


Link to post
Share on other sites

You just have to write your tasks in a different way:

tskZiel1 = player createSimpleTask ["Sammelpunkt erreichen"];
tskZiel1 setSimpleTaskDescription ["Erreichen Sie den Sammelpunkt an der Absprungzone!","Sammelpunkt erreichen","Sammelpunkt"];
if (Ziel1) then {
		tskZiel1 setTaskState "Succeeded";
	} else {
		tskZiel1 setTaskState "Created";
		tskZiel1 setSimpleTaskDestination (getMarkerPos "3");
		player setCurrentTask tskZiel1;
	};

After respawn, the palyer must execute the "briefing.sqf" again and you have to set Ziel1 = true when an objective is completed. Now, if a player respawns and a task is actually done already, it will be shown as "Succeeded". Hope it helps. :yay:

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  

×