OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started 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
-
trigger condition: !alive unitname
on activation, whatever you need to do to end the mission
-
whats the unit name exactly?
-
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.