Thread: finish my map?
View Single Post
  #4  
Old 10-31-2009, 03:19 PM
Manic_Mechanic's Avatar
Manic_Mechanic Manic_Mechanic is offline
Approved Member
 
Join Date: Oct 2009
Location: United States
Posts: 15
Default

I can help you with the first one right now. I'll have to take a look and get back to you about the flag capturing thing.

To create a new trigger you press "6" while in the mission editor or click the six icon down in the little row of icons along side the editor interface on the right side of the screen. Right click in the little dark grey box under the button you use to save missions and choose add. Name your trigger, then click ok.


Now the lower portion of the editor interface will have two new boxes underneath the name of your trigger. The top one is labled conditions, the bottom one is labled commands. Right click in the conditions box and choose "entities". It's the second option from the top. This will make a little entry in the conditons box title "1. Entities". Double click on that.


This will open a window called [Properties for "entities"]. The seventh line down on this window is an option called "players". Click on this and select the player you have assigned the enemies which must be killed to. Beneath the "player" option is an option called "type". Click on this and choose "human". This will also apply to any crewmen inside enemy vehicles. Underneath "type" is an option called "state". Click on this and choose "not dead". Next is count which starts out showing the ">" sign. You need to change this to "=". The option "value" should already start out with "0".

This means when ever there are 0 people on the enemy side who are not dead, the condition will be met. Of course if nobody's not dead then that means everybody is dead, which is what you're looking for.



This post is getting a bit long. Let me start a new post to cover the command now that the condition is ready.

Last edited by Manic_Mechanic; 10-31-2009 at 03:32 PM. Reason: unsatisfactory spacing.
Reply With Quote