Home   Help Search Login Register  

Author Topic: Why my ends dont end?  (Read 1094 times)

0 Members and 1 Guest are viewing this topic.

Offline M!StAkE id11479

  • Members
  • *
Why my ends dont end?
« on: 13 Dec 2008, 00:21:22 »
I cant understand why different ends im using dont work, i had never that problem damn!  :dunno:

I got a special end if the player die (solo mission, player in a squad as private) with end2 who give only a little text from briefing (cause you are dead), my trigger condition is >

not (alive MyGuyName)               + end2 + 20/20/20 seconds at chrono
In activation >

forceend

I got too a trigger for the whole squad killed , in condition >

this                                        + end3  + east non present + 25/25/25 seconds at chrono and large perimeter

In activation field:

forceend

No one of that two triggers work!!! And the funny thing is that if i go leader of the squad for try then the guy i have to play in the squad end the mission if he die LOL (if i play him the trigger dont work!)
Why?  :P

« Last Edit: 13 Dec 2008, 00:26:36 by M!StAkE id11479 »

Offline Ext3rmin4tor

  • Members
  • *
Re: Why my ends dont end?
« Reply #1 on: 13 Dec 2008, 15:08:33 »
Because you can't force the mission to end when a human player gets killed, since the game launches the standard death cinematic sequence. If an AI controlled unit dies this doesn't happen so the game will fire the trigger correctly and end the mission. It's useless to force a mission to end if the player dies since, both in campaing and in single mission, it doen's make sense to "end" a mission in a particular way with the player death (since in a campaign the game will load the next mission according to what you defined in Description.ext, even if you fail a mission, for example in ArmA campaign the "strategic map" interface is just a mission that displays a dialogue and launches a mission depending on what you choose on the dialogue. If you fail a secondary mission the game doesn't end but it will load the next mission according to what you've done in the previous one), the mission ends itself since the player is death and you can choose to load, start again the mission or exit the game. Multiple ends should be used only when you fail a mission for an event different from the player death (example: you must prevent a guy from beeing executed but you fail and the guy dies, you can use a different end to warn the player that the target is dead). The only way to modify the standard death sequence for a player is to include the "onPlayerKilled.sqs" script in your mission, but you can only change the cinematic normally availabe when you die. You can find further info here: http://community.bistudio.com/wiki/Event_Scripts .

One other thing, you can't execute nothing with "visual" effects in an "end trigger" since the mission will be forced to end immediately and you won't see anything. A way to execute a cinematic, to display a text or to do whatever you want before ending a mission is to use a normal trigger for the end condition, launch a script from there and then use a boolean value that will be set to true when the script ends, then make an end trigger that has that boolean value as condition. Example: you want to display "You failed the mission asshole!" when you fail your objective, so create a normal trigger like this:

Type: None
condition: <<Place the "mission failed" condition here
On activation: [] exec "endLose.sqs"

then create the script with the following code:
Code: [Select]
cutText["You failed the mission asshole!", "PLAIN", 0.5]
~5
; we set the boolean value to true to end the mission
lose = true
exit

Now create a trigger like this:

Type: end 1
Condition: lose
On Activation: <<Leave this empty>>

now the mission ends when the boolean variable "lose" is true, and that happens when the final sequence script is done.

Using a timeout won't work since the On Activation field is executed when the timeout expires and this means that for an end-type trigger the mission will end immediately when the timer expires (it doesn't execute the On Activation field either).
« Last Edit: 13 Dec 2008, 15:12:53 by Ext3rmin4tor »
How can you shoot women and children?
Easy! Ya' just don't lead'em so much! Ain't war hell?!!

Offline M!StAkE id11479

  • Members
  • *
Re: Why my ends dont end?
« Reply #2 on: 14 Dec 2008, 21:25:22 »
I thougt about something like it, its the first time i try to add a text in debriefing if the player are dead...
Ill try something with your solutions, thanks ;)