View Full Version : keep tasks after respawn
der.hannes
Jun 4 2009, 08:29
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
der.hannes
Jun 4 2009, 14:11
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
De_little_Bubi
Jun 5 2009, 07:33
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^^
IceShade
Jun 7 2009, 00:47
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
[GLT] Legislator
Jun 22 2009, 08:35
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.
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.
IndeedPete
Jul 25 2009, 15:58
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:
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.