OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Exodus on 27 Feb 2004, 20:27:36

Title: Ending mission when someone dies
Post by: Exodus on 27 Feb 2004, 20:27:36
alright i need some help, i need the mission to end when you kill a U.S. General, I know how to make the mission end with a trigger, but i want to make it end when this specific person dies. So if anyone can help me out please post it here or email me at goldenblade64@yahoo.com
Title: Re:Ending mission when someone dies
Post by: Terox on 27 Feb 2004, 21:22:55
trigger condition: !alive unitname
on activation,   whatever you need to do to end the mission
Title: Re:Ending mission when someone dies
Post by: Exodus on 27 Feb 2004, 22:51:18
whats the unit name exactly?
Title: Re:Ending mission when someone dies
Post by: icarus_uk on 28 Feb 2004, 02:03:05
Whatever name you have given the unit.  Open the unit propeties for the unit you want to check against (double click it), there you'll find a box to put in a "name", give it a name  "general".

Then in a trigger, put in the condition;

!alive General

You'll find that alot of people on the forums will replace words in the commands with generic terms.  Like UnitName or things like that.  Normally, if they are nice they will put the parts of the code you can change in italics, or colour, or some other type of formatting to make things obvious.