Delta Force Barracks Forums

wac file commands

comandobat - 4-6-2007 at 01:20 AM

How can i add a command in a wac file that will end the game if the start player dies 3 times. What will the code look like??

DFX SP game

Jonathan - 4-7-2007 at 11:53 AM

Are you using the MED for DFx to make your map? If so, then I believe there's a method to do this within the MED Events.

Add an event like the one below and have it reset after about 30secs. This event will increment V1 by a count of 1 each time the player dies.

IF SSNdead(10000)
Then Inc(V1,1)

Add another event where:

If Var1 equals 3
Then red wins

Something like that. Its been awhile since I've seen the DFx MED.